/* ==========================================================================
   NextFin — modernisation layer for the Elementor-built pages
   (home, about, contact and the six service pages)

   These pages were built with three competing fonts, 40px headings on a 1.0
   line-height, pure-black headings and washed-out grey body copy. This layer
   brings them onto the same type scale, colour palette and component styling
   as the custom-built pages, without touching the Elementor layouts.

   Everything is scoped to Elementor's own classes, so it cannot reach the
   custom templates (which live under .nf-city) or the site footer.
   ========================================================================== */

:root {
	--nfm-blue: #137DBE;
	--nfm-blue-600: #0F6BA4;
	--nfm-deep: #0D4466;
	--nfm-ink: #10222E;
	--nfm-body: #4B5F6C;
	--nfm-muted: #647680;
	--nfm-line: #DCE9F2;
	--nfm-tint: #F3F8FC;
	--nfm-font: "Roboto", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--nfm-radius: 14px;
	--nfm-radius-lg: 20px;
	--nfm-shadow: 0 16px 40px -22px rgba(13, 68, 102, .35);
}

/* ---------------------------------------------------------- typography */

/*
 * Elementor writes per-element rules like
 *   .elementor-993 .elementor-element.elementor-element-abc .elementor-heading-title
 * which outrank any sane selector, so the overrides below are marked important.
 * That is deliberate and limited to size, spacing and font family.
 *
 * Colours are NOT overridden. Elementor sets them per element and several of
 * these headings sit white-on-dark; forcing a single colour would make them
 * invisible.
 */

.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-icon-list .elementor-icon-list-text,
.elementor-widget-button .elementor-button,
.elementor-widget-image-box .elementor-image-box-content,
.elementor-widget-icon-box .elementor-icon-box-content {
	font-family: var(--nfm-font) !important;
}

/* Headings: smaller, tighter tracking, breathable line-height. */
.elementor-widget-heading h1.elementor-heading-title,
.elementor-widget-heading h2.elementor-heading-title,
.elementor-widget-heading h3.elementor-heading-title,
.elementor-widget-heading h4.elementor-heading-title {
	line-height: 1.22 !important;
	letter-spacing: -.015em;
	font-weight: 700;
}

.elementor-widget-heading h1.elementor-heading-title { font-size: clamp(28px, 3.2vw, 40px) !important; }
.elementor-widget-heading h2.elementor-heading-title { font-size: clamp(23px, 2.5vw, 32px) !important; }
.elementor-widget-heading h3.elementor-heading-title { font-size: clamp(17.5px, 1.7vw, 20px) !important; line-height: 1.3 !important; }
.elementor-widget-heading h4.elementor-heading-title { font-size: 16.5px !important; line-height: 1.35 !important; }

/* Body copy: a readable 15.5/1.72 instead of 18/1.5. */
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-icon-list .elementor-icon-list-text {
	font-size: 15.5px !important;
	line-height: 1.72 !important;
	font-weight: 400;
}
.elementor-widget-text-editor { color: var(--nfm-body); }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- buttons */

.elementor-widget-button .elementor-button {
	font-family: var(--nfm-font);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .01em;
	padding: 14px 26px !important;
	border-radius: 999px !important;
	font-size: 14.5px !important;
	transition: transform .18s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.elementor-widget-button .elementor-button:hover,
.elementor-widget-button .elementor-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px -14px rgba(19, 125, 190, .8);
}
.elementor-widget-button .elementor-button-content-wrapper { align-items: center; }
.elementor-widget-button .elementor-button-icon svg { width: 15px; height: 15px; }

/* ------------------------------------------------------- cards & boxes */

.elementor-widget-image-box .elementor-image-box-wrapper,
.elementor-widget-icon-box .elementor-icon-box-wrapper {
	transition: transform .25s ease, box-shadow .25s ease;
}

/* Any container the editors gave a background or border becomes a proper card. */
.e-con-inner > .elementor-element.e-con[class*="elementor-element"][style*="background-color"],
.elementor-widget-wrap[style*="background-color"] {
	border-radius: var(--nfm-radius-lg);
}

/* Images pick up the same rounding as the custom pages. */
.elementor-widget-image img,
.elementor-widget-image-box .elementor-image-box-img img {
	border-radius: var(--nfm-radius);
}

/* Icon boxes: consistent icon plate instead of bare glyphs. */
.elementor-widget-icon-box .elementor-icon-box-icon .elementor-icon {
	border-radius: 13px;
}

/* --------------------------------------------------------- accordions */

/*
 * These Elementor accordions hold BENEFITS and PROCESS steps — "Reduce Debt",
 * "Avoid Bankruptcy", "Free Initial Consultation" — not questions.
 *
 * They must NOT look like the FAQ accordion that sits further down every page,
 * or the page reads as though it has two FAQ sections. So: tinted rows with a
 * brand accent bar, clearly different from the FAQ's white question cards.
 */

/*
 * Elementor 3.x renders these as `.e-n-accordion > .e-n-accordion-item`; there is
 * no `.elementor-widget-nested-accordion` wrapper, so do not scope on one.
 */
.e-n-accordion .e-n-accordion-item {
	margin-bottom: 8px !important;
	border: 1px solid var(--nfm-line) !important;
	border-left: 3px solid var(--nfm-blue) !important;
	border-radius: 0 var(--nfm-radius) var(--nfm-radius) 0 !important;
	background: var(--nfm-tint) !important;
	overflow: hidden;
	transition: background-color .2s ease, border-color .2s ease;
}
.e-n-accordion .e-n-accordion-item:hover,
.e-n-accordion .e-n-accordion-item[open] {
	background: #EAF3FA !important;
}
.e-n-accordion .e-n-accordion-item[open] {
	border-left-color: var(--nfm-blue-600) !important;
}
.e-n-accordion .e-n-accordion-item-title,
.e-n-accordion .e-n-accordion-item > summary {
	font-family: var(--nfm-font) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: var(--nfm-deep) !important;
	padding: 14px 18px !important;
}

/* ------------------------------------------------------- Contact Form 7 */

.elementor-widget-shortcode .wpcf7 input[type="text"],
.elementor-widget-shortcode .wpcf7 input[type="email"],
.elementor-widget-shortcode .wpcf7 input[type="tel"],
.elementor-widget-shortcode .wpcf7 input[type="number"],
.elementor-widget-shortcode .wpcf7 select,
.elementor-widget-shortcode .wpcf7 textarea,
.cf7-wrapper input[type="text"],
.cf7-wrapper input[type="email"],
.cf7-wrapper input[type="tel"],
.cf7-wrapper input[type="number"],
.cf7-wrapper textarea {
	font-family: var(--nfm-font);
	font-size: 14px;
	padding: 12px 14px;
	border: 1px solid var(--nfm-line);
	border-radius: 10px;
	background: #fff;
	color: var(--nfm-ink);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.elementor-widget-shortcode .wpcf7 input:focus,
.elementor-widget-shortcode .wpcf7 select:focus,
.elementor-widget-shortcode .wpcf7 textarea:focus,
.cf7-wrapper input:focus,
.cf7-wrapper textarea:focus {
	outline: none;
	border-color: var(--nfm-blue);
	box-shadow: 0 0 0 3px rgba(19, 125, 190, .15);
}
.cf7-wrapper input[type="submit"],
.elementor-widget-shortcode .wpcf7 input[type="submit"] {
	font-family: var(--nfm-font);
	font-size: 14.5px;
	font-weight: 600;
	padding: 14px 24px;
	border-radius: 999px;
	transition: background-color .2s ease, transform .18s ease;
}
.cf7-wrapper input[type="submit"]:hover,
.elementor-widget-shortcode .wpcf7 input[type="submit"]:hover {
	transform: translateY(-2px);
}
.cf7-wrapper h2 {
	font-family: var(--nfm-font);
	font-size: 20px;
	font-weight: 700;
	color: var(--nfm-deep);
	letter-spacing: -.015em;
	margin-bottom: 18px;
}
.cf7-field label {
	font-family: var(--nfm-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--nfm-deep);
}

/* --------------------------------------------------- testimonial cards */

.apex-testimonial-card {
	border-radius: var(--nfm-radius-lg);
	border: 1px solid var(--nfm-line);
	box-shadow: 0 12px 30px -24px rgba(13, 68, 102, .5);
	transition: transform .25s ease, box-shadow .25s ease;
}
.apex-testimonial-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--nfm-shadow);
}
.apex-text { font-family: var(--nfm-font); font-size: 14.5px; line-height: 1.7; color: var(--nfm-body); }
.apex-author { font-family: var(--nfm-font); font-size: 15px; font-weight: 600; color: var(--nfm-deep); }

/* -------------------------------------------------------------- links */

.elementor-widget-text-editor a { color: var(--nfm-blue-600); text-decoration: none; }
.elementor-widget-text-editor a:hover { color: var(--nfm-blue); text-decoration: underline; }

/* ----------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
	.elementor-widget-button .elementor-button,
	.apex-testimonial-card,
	.elementor-widget-nested-accordion .e-n-accordion-item { transition: none; }
	.elementor-widget-button .elementor-button:hover,
	.apex-testimonial-card:hover { transform: none; }
}

/* ==========================================================================
   Benefit / process accordions converted to an always-open card grid
   (see the matching block in city-page.js). This removes the second
   collapsible stack from the service pages so only the FAQ accordion remains.
   ========================================================================== */

.e-n-accordion.nf-benefitgrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.nf-benefitgrid .e-n-accordion-item {
	margin: 0 !important;
	background: #fff !important;
	border: 1px solid var(--nfm-line) !important;
	border-top: 3px solid var(--nfm-blue) !important;
	border-radius: var(--nfm-radius) !important;
	box-shadow: 0 12px 30px -24px rgba(13, 68, 102, .5);
	transition: transform .25s ease, box-shadow .25s ease;
}
.nf-benefitgrid .e-n-accordion-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--nfm-shadow);
	background: #fff !important;
}

/* No toggle affordance — these never close. */
.nf-benefitgrid .e-n-accordion-item > summary {
	cursor: default !important;
	list-style: none;
	padding: 20px 22px 6px !important;
	font-size: 16px !important;
}
.nf-benefitgrid .e-n-accordion-item > summary::-webkit-details-marker,
.nf-benefitgrid .e-n-accordion-item > summary::marker { display: none; content: ""; }
.nf-benefitgrid .e-n-accordion-item-title-icon,
.nf-benefitgrid .e-n-accordion-item > summary .e-opened,
.nf-benefitgrid .e-n-accordion-item > summary .e-closed { display: none !important; }

.nf-benefitgrid .e-n-accordion-item > :not(summary) {
	padding: 0 22px 20px;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--nfm-body);
}

@media (max-width: 620px) {
	.e-n-accordion.nf-benefitgrid { grid-template-columns: 1fr; gap: 12px; }
}
