/*
Theme Name: Finverge (Kadence child)
Template: kadence
Description: Finverge Limited, Mbale. Clean, photo-led lender site on Kadence. Edit pages with Kadence + core blocks; header/footer in Appearance > Customize.
Version: 3.0.0
Text Domain: finverge-kadence
*/

/* ================= Tokens ================= */
:root {
	--fv-teal: #175E6A;        /* logo teal */
	--fv-teal-dark: #0F4752;
	--fv-ink: #0E2A2F;
	--fv-text: #33474B;
	--fv-muted: #5B6F73;
	--fv-sand: #F2DCC2;        /* logo sand */
	--fv-sand-soft: #FAF1E6;
	--fv-mist: #F1F5F4;
	--fv-line: #DCE5E3;
	--fv-white: #FFFFFF;
	--fv-plum: #5B2A4E;

	--fv-head: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fv-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--fv-max: 1200px;
	--fv-gutter: 24px;
	--fv-sec: 104px;
	--fv-radius: 16px;
	--fv-shadow: 0 1px 2px rgba(14, 42, 47, .06), 0 12px 32px -12px rgba(14, 42, 47, .18);
	--fv-ease: cubic-bezier(.2, .7, .2, 1);
	--fv-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (max-width: 767px) { :root { --fv-sec: 64px; --fv-gutter: 20px; } }

/* ================= Base ================= */
body { font-family: var(--fv-body); font-size: 17px; line-height: 1.65; color: var(--fv-text); background: var(--fv-white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--fv-head); color: var(--fv-ink); letter-spacing: -.015em; }
a { color: var(--fv-teal); }
::selection { background: var(--fv-sand); color: var(--fv-ink); }
:focus-visible { outline: 3px solid var(--fv-teal) !important; outline-offset: 3px; }
.fv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page .content-area { margin: 0 !important; }
.page .entry-content-wrap { padding: 0 !important; }
.page .entry.single-entry { box-shadow: none; background: transparent; }
.entry-content > .kb-row-layout-wrap.alignfull { margin-top: 0; margin-bottom: 0; }

/* ================= Grid: every section shares one container ================= */
.fv-sec > .kt-row-column-wrap {
	max-width: calc(var(--fv-max) + 2 * var(--fv-gutter)) !important;
	margin-left: auto; margin-right: auto;
	padding: var(--fv-sec) var(--fv-gutter) !important;
	column-gap: 64px !important; row-gap: 40px !important;
}
.fv-sec .fv-sub > .kt-row-column-wrap { padding: 0 !important; max-width: none !important; column-gap: 24px !important; row-gap: 24px !important; }
.fv-sec .kt-inside-inner-col > *:first-child { margin-top: 0; }
.fv-sec .kt-inside-inner-col > *:last-child { margin-bottom: 0; }

.fv-sec--mist { background: var(--fv-mist); }
.fv-sec--teal { background: var(--fv-teal); }
.fv-sec--teal h2, .fv-sec--teal h3, .fv-sec--teal .fv-eyebrow { color: var(--fv-white); }
.fv-sec--teal p, .fv-sec--teal li { color: rgba(255, 255, 255, .85); }

/* ================= Type ================= */
.fv-eyebrow { font-family: var(--fv-head); font-weight: 600; font-size: 15px; color: var(--fv-teal); margin: 0 0 14px !important; }
.fv-display, .fv-sec h1 { font-family: var(--fv-head); font-weight: 700; font-size: clamp(2.5rem, 4.6vw, 3.75rem); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 20px; }
.fv-sec h2 { font-family: var(--fv-head); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 16px; }
.fv-sec h3 { font-family: var(--fv-head); font-weight: 700; font-size: 1.3rem; line-height: 1.25; margin: 0 0 10px; }
.fv-sec p { margin: 0 0 16px; }
.fv-lede { font-size: 1.15rem; line-height: 1.6; color: var(--fv-text); max-width: 600px; }
.fv-head { max-width: 680px; margin-bottom: 48px !important; }
.fv-head > *:last-child { margin-bottom: 0 !important; }

/* ================= Buttons ================= */
.fv-sec .wp-block-buttons { gap: 12px; margin-top: 28px; }
.fv-sec .wp-block-button__link, .fv-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 10px;
	background: var(--fv-teal); color: var(--fv-white) !important; border: 2px solid var(--fv-teal);
	font-family: var(--fv-head); font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1;
	transition: background-color .2s, border-color .2s, transform .2s var(--fv-ease);
}
.fv-sec .wp-block-button__link:hover, .fv-btn:hover { background: var(--fv-teal-dark); border-color: var(--fv-teal-dark); transform: translateY(-1px); }
.fv-sec .is-style-outline .wp-block-button__link { background: transparent; color: var(--fv-teal) !important; }
.fv-sec .is-style-outline .wp-block-button__link:hover { background: var(--fv-mist); }
.fv-on-dark .wp-block-button__link { background: var(--fv-sand); border-color: var(--fv-sand); color: var(--fv-ink) !important; }
.fv-on-dark .wp-block-button__link:hover { background: #F7E7D4; border-color: #F7E7D4; }
.fv-on-dark .is-style-outline .wp-block-button__link { background: transparent; border-color: rgba(255, 255, 255, .6); color: var(--fv-white) !important; }
.fv-on-dark .is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); }

/* ================= Hero (photo background set in the Kadence row) ================= */
.fv-sec--hero { position: relative; background-color: var(--fv-ink); }
.fv-sec--hero::before { content: ""; display: block !important; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(9, 30, 34, .96) 0%, rgba(9, 30, 34, .92) 40%, rgba(9, 30, 34, .55) 58%, rgba(9, 30, 34, .3) 100%); }
.fv-sec--hero > .kt-row-column-wrap { position: relative; z-index: 1; align-items: center; padding-top: 96px !important; padding-bottom: 96px !important; min-height: 640px; }
.fv-sec--hero h1, .fv-sec--hero .fv-display { color: var(--fv-white); max-width: 560px; }
.fv-sec--hero .fv-lede { color: rgba(255, 255, 255, .88); max-width: 520px; }
.fv-sec--hero .fv-eyebrow { color: var(--fv-sand); }
.fv-trust { list-style: none; padding: 0 !important; margin: 32px 0 0 !important; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.fv-trust li { position: relative; padding-left: 24px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.fv-trust li::before { content: ""; position: absolute; left: 0; top: .3em; width: 15px; height: 15px; background: var(--fv-sand); -webkit-mask: var(--fv-tick) center / contain no-repeat; mask: var(--fv-tick) center / contain no-repeat; }

/* ================= Calculator card ================= */
.fv-calc { background: var(--fv-white); border-radius: var(--fv-radius); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .45); overflow: hidden; color: var(--fv-text); max-width: 460px; margin-left: auto; }
.fv-calc__body { padding: 28px 28px 8px; }
.fv-calc__title { font-family: var(--fv-head); font-weight: 700; font-size: 1.3rem; color: var(--fv-ink); margin: 0 0 18px !important; }
.fv-calc__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--fv-mist); border: 0; margin: 0 0 22px; }
.fv-calc__tabs label { position: relative; cursor: pointer; }
.fv-calc__tabs input, .fv-calc__freq input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.fv-calc__tabs span { display: block; text-align: center; padding: 9px 8px; border-radius: 8px; font-family: var(--fv-head); font-weight: 600; font-size: 15px; color: var(--fv-muted); line-height: 1.25; }
.fv-calc__tabs small { display: block; font-family: var(--fv-body); font-weight: 400; font-size: 12px; }
.fv-calc__tabs input:checked + span { background: var(--fv-white); color: var(--fv-ink); box-shadow: 0 1px 3px rgba(14, 42, 47, .14); }
.fv-calc__tabs input:focus-visible + span, .fv-calc__freq input:focus-visible + span { outline: 3px solid var(--fv-teal); outline-offset: 1px; }
.fv-calc__field { margin: 0 0 18px; }
.fv-calc__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.fv-calc__row label { font-weight: 700; color: var(--fv-ink); font-size: 15px; }
.fv-calc__row output { font-family: var(--fv-head); font-weight: 700; color: var(--fv-ink); font-variant-numeric: tabular-nums; }
.fv-calc__scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--fv-muted); margin-top: 2px; }
.fv-calc__freq { display: flex; align-items: center; justify-content: space-between; border: 0; padding: 0; margin: 0 0 22px; }
.fv-calc__freq legend { float: left; font-weight: 700; color: var(--fv-ink); font-size: 15px; padding: 0; }
.fv-calc__freq div { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--fv-mist); }
.fv-calc__freq label { position: relative; cursor: pointer; }
.fv-calc__freq span { display: block; padding: 7px 16px; border-radius: 8px; font-family: var(--fv-head); font-weight: 600; font-size: 14.5px; color: var(--fv-muted); }
.fv-calc__freq input:checked + span { background: var(--fv-teal); color: var(--fv-white); }
.fv-range, input[type=range].fv-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; cursor: pointer; --fill: 30%; }
.fv-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--fv-teal) var(--fill), var(--fv-line) var(--fill)); }
.fv-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--fv-line); }
.fv-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--fv-teal); }
.fv-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--fv-white); border: 2px solid var(--fv-teal); box-shadow: 0 2px 6px rgba(14, 42, 47, .25); }
.fv-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--fv-white); border: 2px solid var(--fv-teal); }
.fv-range:focus-visible { outline: none !important; }
.fv-range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--fv-teal); outline-offset: 2px; }
.fv-calc__result { background: var(--fv-mist); border-top: 1px solid var(--fv-line); padding: 20px 28px 24px; }
.fv-calc__label { margin: 0 !important; font-size: 14px; color: var(--fv-muted); }
.fv-calc__big { margin: 2px 0 4px !important; font-family: var(--fv-head); font-weight: 700; font-size: 2.4rem; line-height: 1.1; letter-spacing: -.02em; color: var(--fv-ink); font-variant-numeric: tabular-nums; }
.fv-calc__big small { font-size: .45em; font-weight: 700; color: var(--fv-muted); letter-spacing: 0; margin-right: 6px; }
.fv-calc__sum { margin: 0 0 16px !important; font-size: 14px; color: var(--fv-text); }
.fv-calc .fv-btn { width: 100%; }
.fv-calc__note { margin: 12px 0 0 !important; font-size: 12.5px; line-height: 1.5; color: var(--fv-muted); }
.fv-calc.is-sme .fv-calc__big { color: var(--fv-plum); }
.fv-calc--inline { margin-left: 0; max-width: 520px; box-shadow: var(--fv-shadow); border: 1px solid var(--fv-line); }

/* ================= Stats strip ================= */
.fv-sec--stats { border-bottom: 1px solid var(--fv-line); }
.fv-sec--stats > .kt-row-column-wrap { padding-top: 40px !important; padding-bottom: 40px !important; }
.fv-stats { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); }
.fv-stats li { padding: 0 28px; border-left: 1px solid var(--fv-line); font-size: 15px; color: var(--fv-muted); line-height: 1.45; }
.fv-stats li:first-child { padding-left: 0; border-left: 0; }
.fv-stats strong { display: block; font-family: var(--fv-head); font-weight: 700; font-size: 1.9rem; line-height: 1.1; letter-spacing: -.02em; color: var(--fv-teal); margin-bottom: 4px; }

/* ================= Photos (real, full colour) ================= */
.fv-photo { margin: 0 !important; border-radius: var(--fv-radius); overflow: hidden; }
.fv-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.fv-photo--tall img { aspect-ratio: 4 / 5; }

/* ================= Loan cards (equal heights, aligned bottoms) ================= */
.fv-cards .wp-block-kadence-column { display: flex; }
.fv-cards .wp-block-kadence-column > .kt-inside-inner-col { display: flex; flex: 1; }
.fv-card { display: flex; flex-direction: column; flex: 1; background: var(--fv-white); border: 1px solid var(--fv-line); border-radius: var(--fv-radius); overflow: hidden; box-shadow: var(--fv-shadow); transition: transform .3s var(--fv-ease), box-shadow .3s var(--fv-ease); }
.fv-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(14, 42, 47, .06), 0 22px 44px -18px rgba(14, 42, 47, .28); }
.fv-card .fv-photo { border-radius: 0; }
.fv-card .fv-photo img { aspect-ratio: 16 / 10; }
.fv-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.fv-card__tag { font-family: var(--fv-head); font-weight: 600; font-size: 13.5px; color: var(--fv-teal); margin: 0 0 8px !important; }
.fv-card__body p { font-size: 16px; }
.fv-card__more { margin-top: auto !important; margin-bottom: 0 !important; padding-top: 8px; }
.fv-card__more a { font-family: var(--fv-head); font-weight: 600; text-decoration: none; }
.fv-card__more a:hover { text-decoration: underline; }

.fv-ticks { list-style: none; padding: 0 !important; margin: 4px 0 20px !important; display: grid; gap: 8px; }
.fv-ticks li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--fv-text); }
.fv-ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; background: var(--fv-teal); -webkit-mask: var(--fv-tick) center / contain no-repeat; mask: var(--fv-tick) center / contain no-repeat; }

/* ================= Steps ================= */
.fv-steps { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.fv-steps li { counter-increment: s; position: relative; padding: 28px 24px; background: var(--fv-white); border: 1px solid var(--fv-line); border-radius: var(--fv-radius); font-size: 15.5px; color: var(--fv-muted); }
.fv-steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 10px; background: var(--fv-teal); color: var(--fv-white); font-family: var(--fv-head); font-weight: 700; font-size: 18px; }
.fv-steps strong { display: block; font-family: var(--fv-head); font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--fv-ink); margin-bottom: 6px; }

/* ================= Split (photo + text) ================= */
.fv-sec--split > .kt-row-column-wrap { align-items: center; }
.fv-quote { font-family: var(--fv-head) !important; font-weight: 700 !important; font-size: clamp(1.5rem, 2.4vw, 2rem) !important; line-height: 1.3 !important; color: var(--fv-ink) !important; letter-spacing: -.015em; }
.fv-points { list-style: none; padding: 0 !important; margin: 24px 0 0 !important; }
.fv-points li { padding: 18px 0; border-top: 1px solid var(--fv-line); color: var(--fv-muted); font-size: 16px; }
.fv-points li:last-child { border-bottom: 1px solid var(--fv-line); }
.fv-points strong { display: block; font-family: var(--fv-head); font-weight: 700; font-size: 1.1rem; color: var(--fv-ink); margin-bottom: 2px; }

/* ================= SME band ================= */
.fv-sec--teal > .kt-row-column-wrap { align-items: center; }
.fv-soon { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: var(--fv-white) !important; font-family: var(--fv-head); font-weight: 600; font-size: 13.5px; margin: 0 0 16px !important; }
.fv-sme-list { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 12px; }
.fv-sme-list li { padding: 20px 22px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 15.5px; }
.fv-sme-list strong { display: block; font-family: var(--fv-head); font-weight: 700; font-size: 1.1rem; color: var(--fv-white); margin-bottom: 2px; }

/* ================= Contact ================= */
.fv-contact { list-style: none; padding: 0 !important; margin: 8px 0 0 !important; }
.fv-contact li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--fv-line); font-size: 16px; }
.fv-contact li:last-child { border-bottom: 1px solid var(--fv-line); }
.fv-contact strong { font-family: var(--fv-head); font-weight: 700; color: var(--fv-ink); }
.fv-map { position: relative; border-radius: var(--fv-radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--fv-line); background: var(--fv-mist); }
.fv-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ================= Inner page header ================= */
.fv-sec--page { background: var(--fv-mist); }
.fv-sec--page > .kt-row-column-wrap { align-items: center; padding-top: 80px !important; padding-bottom: 80px !important; }
.fv-sec--page .fv-display { font-size: clamp(2.2rem, 4vw, 3.2rem); max-width: 600px; }

/* ================= Form (WPForms) ================= */
.fv-form { padding: 32px; border-radius: var(--fv-radius); background: var(--fv-white); border: 1px solid var(--fv-line); box-shadow: var(--fv-shadow); }
.fv-form .wpforms-container { margin: 0 !important; }
.fv-form .wpforms-field { padding: 0 0 18px !important; }
.fv-form .wpforms-field-label { display: block; margin: 0 0 6px; font-family: var(--fv-head); font-weight: 600; font-size: 15px; color: var(--fv-ink); }
.fv-form .wpforms-required-label { color: #B0412E; }
.fv-form input[type=text], .fv-form input[type=email], .fv-form select, .fv-form textarea { width: 100% !important; max-width: 100% !important; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid #C9D6D3; background: var(--fv-white); font: inherit; font-size: 16px; color: var(--fv-ink); }
.fv-form textarea { min-height: 110px; }
.fv-form input:focus, .fv-form select:focus, .fv-form textarea:focus { outline: none; border-color: var(--fv-teal); box-shadow: 0 0 0 3px rgba(23, 94, 106, .15); }
.fv-form .wpforms-field-radio ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fv-form .wpforms-field-radio li { position: relative; margin: 0 !important; padding: 0 !important; }
.fv-form .wpforms-field-radio li input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.fv-form .wpforms-field-radio li label { display: block; padding: 9px 14px; border-radius: 10px; border: 1px solid #C9D6D3; font-size: 15px; cursor: pointer; background: var(--fv-white); }
.fv-form .wpforms-field-radio li:has(input:checked) label { background: var(--fv-teal); border-color: var(--fv-teal); color: var(--fv-white); }
.fv-form .wpforms-field-radio li:has(input:focus-visible) label { outline: 3px solid var(--fv-teal); outline-offset: 2px; }
.fv-form button[type=submit] { width: 100%; min-height: 54px; border: 0; border-radius: 10px; background: var(--fv-teal); color: var(--fv-white); font-family: var(--fv-head); font-weight: 600; font-size: 16.5px; cursor: pointer; }
.fv-form button[type=submit]:hover { background: var(--fv-teal-dark); }
.fv-form label.wpforms-error, .fv-form em.wpforms-error { color: #B0412E; font-size: 14px; font-style: normal; display: block; margin-top: 6px; }
.fv-form .wpforms-confirmation-container-full { padding: 18px 20px; border-radius: 10px; background: var(--fv-mist); border: 1px solid var(--fv-teal); }

/* ================= Kadence header + footer ================= */
.site-top-header-wrap .site-header-row-container-inner { background: var(--fv-teal) !important; }
.site-top-header-wrap, .site-top-header-wrap a { color: rgba(255, 255, 255, .92) !important; font-size: 14px; }
.site-main-header-wrap .site-header-row-container-inner { background: var(--fv-white) !important; border-bottom: 1px solid var(--fv-line); }
.site-branding .custom-logo { max-height: 56px; width: auto; }
.main-navigation .primary-menu-container > ul > li.menu-item > a { font-family: var(--fv-head); font-weight: 600; font-size: 16px; color: var(--fv-ink); padding-left: 12px; padding-right: 12px; }
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover, .main-navigation .primary-menu-container > ul > li.current-menu-item > a { color: var(--fv-teal); }
.header-button-wrap .header-button { font-family: var(--fv-head) !important; font-weight: 600 !important; border-radius: 10px !important; background: var(--fv-teal) !important; color: var(--fv-white) !important; border: 0 !important; padding: 13px 20px !important; }
.header-button-wrap .header-button:hover { background: var(--fv-teal-dark) !important; }
#mobile-drawer .drawer-inner { background: var(--fv-teal) !important; }
#mobile-drawer .mobile-navigation ul li > a { color: var(--fv-white) !important; font-family: var(--fv-head); font-weight: 600; font-size: 1.2rem; }
.site-footer .site-footer-row-container-inner { background: var(--fv-ink) !important; color: rgba(255, 255, 255, .78); }
.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.site-footer a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.site-footer a:hover { color: var(--fv-sand); }
.site-footer h3, .site-footer .widget-title { font-family: var(--fv-head); font-weight: 700; color: var(--fv-white) !important; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer .wp-block-image img { max-width: 200px; height: auto; }
.site-footer .fv-reg { font-size: 14px; color: rgba(255, 255, 255, .62); }

/* ================= Reveal ================= */
.fv-anim .fv-reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--fv-ease), transform .7s var(--fv-ease); }
.fv-anim .fv-reveal.is-in { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
	.fv-sec > .kt-row-column-wrap { column-gap: 40px !important; }
	.fv-stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
	.fv-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
	.fv-steps { grid-template-columns: repeat(2, 1fr); }
	.fv-calc { margin-left: 0; }
}
@media (max-width: 767px) {
	.fv-sec--hero::before { background: linear-gradient(180deg, rgba(10, 34, 39, .78) 0%, rgba(10, 34, 39, .9) 60%, rgba(10, 34, 39, .95) 100%); }
	.fv-sec--hero > .kt-row-column-wrap { min-height: 0; padding-top: 56px !important; padding-bottom: 56px !important; }
	.fv-sec--hero .wp-block-button, .fv-sec--hero .wp-block-button__link { width: 100%; }
	.fv-calc { max-width: none; }
	.fv-calc__body, .fv-calc__result { padding-left: 20px; padding-right: 20px; }
	.fv-steps { grid-template-columns: 1fr; }
	.fv-contact li { grid-template-columns: 1fr; gap: 2px; }
	.fv-form { padding: 22px 18px; }
	.fv-sec--page > .kt-row-column-wrap { padding-top: 48px !important; padding-bottom: 48px !important; }
}
@media (max-width: 480px) {
	.fv-stats { grid-template-columns: 1fr; }
	.fv-stats li { padding-left: 0 !important; border-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ================= v3.1: portal-matched softness ================= */
:root { --fv-radius: 20px; --fv-shadow: 0 1px 2px rgba(14, 42, 47, .04), 0 18px 40px -20px rgba(23, 94, 106, .28); --fv-mint: #E8F4F2; }
body { background: linear-gradient(180deg, #F4FAF9 0%, #FFFFFF 600px); }
.fv-sec--mist { background: linear-gradient(180deg, var(--fv-mint) 0%, #F5FAF9 100%); }
.fv-sec .wp-block-button__link, .fv-btn, .fv-form button[type=submit], .header-button-wrap .header-button { border-radius: 12px !important; }

/* Hero as a framed card, like the client portal */
.entry-content > .fv-sec--hero.alignfull { width: auto !important; max-width: none !important; margin: 16px 16px 0 !important; border-radius: 28px; overflow: hidden; }
.fv-sec--hero > .kt-row-column-wrap { min-height: 600px; }
.fv-calc { border-radius: 22px; }

/* Stats as soft cards under the hero */
.fv-sec--stats { border-bottom: 0; }
.fv-stats { gap: 16px; }
.fv-stats li, .fv-stats li:first-child { padding: 22px 24px; border: 1px solid var(--fv-line); border-radius: 18px; background: #fff; box-shadow: var(--fv-shadow); }
.fv-steps li { border-radius: 20px; box-shadow: var(--fv-shadow); border-color: transparent; }
.fv-sme-list li { border-radius: 16px; }
.fv-sec--teal { background: linear-gradient(135deg, #175E6A 0%, #1F7482 100%); }
.entry-content > .fv-sec--teal.alignfull { width: auto !important; max-width: none !important; margin: 0 16px !important; border-radius: 28px; }

/* Top bar centred */
.site-top-header-wrap .site-header-top-section-center { justify-content: center; }
.site-top-header-wrap .header-html, .site-top-header-wrap .header-html-inner { text-align: center; }

/* ================= Blog ================= */
.blog .content-container, .archive .content-container, .single-post .content-container { max-width: 1248px; }
.blog .entry-hero, .archive .entry-hero { background: linear-gradient(180deg, var(--fv-mint) 0%, #F5FAF9 100%); }
.loop-entry.entry { border-radius: 20px; overflow: hidden; box-shadow: var(--fv-shadow); border: 1px solid var(--fv-line); }
.loop-entry .entry-title { font-family: var(--fv-head); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
.loop-entry .entry-title a { color: var(--fv-ink); text-decoration: none; }
.loop-entry .entry-title a:hover { color: var(--fv-teal); }
.loop-entry .post-more-link { font-family: var(--fv-head); font-weight: 600; color: var(--fv-teal); }
.single-post .entry-header .entry-title { font-family: var(--fv-head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; letter-spacing: -.02em; }
.single-post .entry-content { font-size: 18px; line-height: 1.75; }
.single-post .entry-content h2 { font-family: var(--fv-head); font-weight: 700; font-size: 1.6rem; margin: 1.8em 0 .5em; }
.single-post .entry-content ul, .single-post .entry-content ol { padding-left: 1.2em; }
.single-post .post-thumbnail img, .single-post .article-post-thumbnail img { border-radius: 20px; }
.fv-post-cta { margin: 2.5em 0 0; padding: 28px; border-radius: 20px; background: var(--fv-mint); border: 1px solid var(--fv-line); }
.fv-post-cta h2 { margin-top: 0 !important; }

@media (max-width: 767px) {
	.entry-content > .fv-sec--hero.alignfull { margin: 10px 10px 0 !important; border-radius: 22px; }
	.entry-content > .fv-sec--teal.alignfull { margin: 0 10px !important; border-radius: 22px; }
	.fv-stats { gap: 12px; }
}

/* v3.2 header fit + blog band */
.main-navigation .primary-menu-container > ul { flex-wrap: nowrap; }
.main-navigation .primary-menu-container > ul > li.menu-item > a { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.header-button-wrap .header-button { white-space: nowrap; }
@media (max-width: 1240px) { .main-navigation .primary-menu-container > ul > li.menu-item > a { font-size: 15px; padding-left: 8px; padding-right: 8px; } }
.entry-hero.post-archive-hero-section .entry-hero-container-inner, .entry-hero.page-hero-section .entry-hero-container-inner { background: linear-gradient(180deg, var(--fv-mint) 0%, #F5FAF9 100%) !important; }
.post-archive-hero-section .entry-header .archive-title, .post-archive-title h1 { font-family: var(--fv-head); font-weight: 700; color: var(--fv-ink); }

/* v3.3 centred section intros ("Our loans", "How it works") */
.fv-head { margin-left: auto !important; margin-right: auto !important; text-align: center; }
.fv-head h2, .fv-head .fv-lede { margin-left: auto; margin-right: auto; }

/* v3.4 blog cards */
.blog .content-area, .archive .content-area { margin: 56px 0 96px; }
.blog .post-archive, .archive .post-archive { gap: 28px; }
.loop-entry.entry { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--fv-line); border-radius: 20px; overflow: hidden; box-shadow: var(--fv-shadow); transition: transform .3s var(--fv-ease), box-shadow .3s var(--fv-ease); }
.loop-entry.entry:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(14, 42, 47, .06), 0 22px 44px -18px rgba(23, 94, 106, .32); }
.loop-entry .post-thumbnail { margin: 0 !important; border-radius: 0; padding-bottom: 62.5% !important; }
.loop-entry .post-thumbnail img { object-fit: cover; }
.loop-entry .entry-content-wrap { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px !important; }
.loop-entry .entry-header { margin-bottom: 10px; }
.loop-entry .entry-taxonomies { margin-bottom: 10px; }
.loop-entry .entry-taxonomies a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--fv-mint); color: var(--fv-teal) !important; font-family: var(--fv-head); font-weight: 600; font-size: 12.5px; letter-spacing: 0; text-transform: none; text-decoration: none; }
.loop-entry .entry-title { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.3; }
.loop-entry .entry-meta { font-size: 13.5px; color: var(--fv-muted); margin: 0; }
.loop-entry .entry-meta a { color: var(--fv-muted); }
.loop-entry .entry-summary { color: var(--fv-text); font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.loop-entry .entry-summary p { margin: 0; }
.loop-entry .entry-footer { margin-top: auto; padding-top: 0; }
.loop-entry .post-more-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fv-head); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--fv-teal); text-decoration: none; }
.loop-entry .post-more-link:hover { text-decoration: underline; }
@media (max-width: 767px) { .blog .content-area, .archive .content-area { margin: 32px 0 64px; } }

/* v3.5 client footer (matches the original Finverge layout) + tagline */
.fv-sec--hero .fv-eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: 13.5px; }
.site-footer .site-middle-footer-wrap .site-footer-row-container-inner { padding-top: 64px; padding-bottom: 48px; }
.site-footer .site-middle-footer-wrap .site-footer-row { border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: 40px; }
.site-footer .fv-tagline { margin: 16px 0 8px; font-family: var(--fv-head); font-weight: 700; font-size: 13.5px; letter-spacing: .06em; color: var(--fv-sand); }
.site-footer .fv-foot-text { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .68); margin: 0 0 16px; }
.site-footer .fv-foot-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 12px; border-radius: 10px; background: rgba(242, 220, 194, .1); border: 1px solid rgba(242, 220, 194, .25); color: var(--fv-sand); font-family: var(--fv-head); font-weight: 600; font-size: 13px; }
.site-footer .fv-foot-badge::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--fv-ic-shield) center / contain no-repeat; mask: var(--fv-ic-shield) center / contain no-repeat; }
.site-footer h3.wp-block-heading { font-size: 14px !important; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 18px; }
.site-footer .fv-foot-links li, .site-footer .fv-foot-office li { padding: 5px 0; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.site-footer .fv-foot-links a { color: rgba(255, 255, 255, .72); }
.site-footer .fv-foot-links a:hover { color: var(--fv-sand); }
.site-footer .fv-foot-portal a { color: var(--fv-sand) !important; font-weight: 600; }
.site-footer .fv-i { position: relative; padding-left: 28px !important; line-height: 1.5; }
.site-footer .fv-i::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; background: var(--fv-sand); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.site-footer .fv-i strong { color: #fff; }
.fv-i-pin { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.fv-i-clock { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.fv-i-phone { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.fv-i-mail { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
:root { --fv-ic-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.site-footer .fv-foot-cta { padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.site-footer .fv-foot-cta h3.wp-block-heading { text-transform: none; letter-spacing: 0; font-size: 1.1rem !important; margin: 0 0 10px; }
.site-footer .fv-foot-cta p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .68); margin: 0 0 16px; }
.site-footer .fv-foot-cta .wp-block-buttons { margin: 0; }
.site-footer .fv-foot-cta .wp-block-button { width: 100%; }
.site-footer .fv-foot-cta .wp-block-button__link { display: flex; justify-content: center; width: 100%; padding: 13px 16px; border-radius: 12px; background: var(--fv-sand); color: var(--fv-ink) !important; font-family: var(--fv-head); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.site-footer .fv-foot-cta .wp-block-button__link:hover { background: #F7E7D4; }
.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner { border-top: 0 !important; padding-top: 4px; padding-bottom: 32px; }
.site-footer .footer-html, .site-footer .footer-html-inner { width: 100%; }
.fv-foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13.5px; color: rgba(255, 255, 255, .6); margin-bottom: 12px; }
.fv-rails { color: rgba(255, 255, 255, .75); }
.fv-reg-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .5); text-align: left; }
.fv-reg-note strong { color: rgba(255, 255, 255, .75); }
@media (max-width: 767px) { .fv-foot-base { flex-direction: column; } .site-footer .site-middle-footer-wrap .site-footer-row { row-gap: 32px; } }
