/*
Theme Name: Hello Elementor Child - JP Financial
Template: hello-elementor
Version: 1.0.0
*/

/**
 * JP Financial shared foundations.
 *
 * Elementor remains responsible for component layout, responsive spacing,
 * typography and imagery. These tokens and semantic primitives cover only
 * repeated behaviour or visual contracts that Elementor cannot express once
 * for every consumer.
 */
:root {
	--jp-color-ink: #111111;
	--jp-color-brand: #00352d;
	--jp-color-brand-deep: #001c10;
	--jp-color-accent: #dafba2;
	--jp-color-surface: #f5f4f0;
	--jp-color-surface-light: #f8faf9;
	--jp-color-white: #ffffff;
	--jp-font-display: "TWK Everett", "Everett", "Inter", sans-serif;
	--jp-font-body: "Inter", sans-serif;
	--jp-radius-control: 12px;
	--jp-radius-card: 18px;
	--jp-radius-panel: 32px;
	--jp-radius-pill: 999px;
	--jp-shadow-floating: 0 16px 40px rgba(0, 0, 0, 0.08);
	--jp-motion-fast: 180ms;
	--jp-motion-medium: 350ms;
	--jp-motion-entry: 700ms;
	--jp-ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
	--jp-layer-header: 9999;
	--jp-page-gutter: clamp(20px, 4vw, 72px);
	--jp-page-footer-gap: 24px;
}

@media (max-width: 1024px) {
	:root {
		--jp-page-footer-gap: 20px;
	}
}

@media (max-width: 767px) {
	:root {
		--jp-page-footer-gap: 16px;
	}
}

.jp-native-header,
.jp-global-footer,
.jp-contact-outer,
.jp-post-card,
.jp-newsletter-form {
	--jp-component-brand: var(--jp-color-brand);
	--jp-component-accent: var(--jp-color-accent);
	--jp-component-surface: var(--jp-color-surface);
}

/* Opt-in shared primitives for the incremental Elementor migration. */
.jp-c-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75em;
	min-height: 3.25rem;
	padding-inline: clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--jp-radius-pill);
	font-family: var(--jp-font-body);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.jp-c-highlight {
	display: inline;
	padding-inline: 0.08em;
	background: var(--jp-color-accent);
	color: var(--jp-color-brand);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.jp-c-card {
	border-radius: var(--jp-radius-card);
	background: var(--jp-color-white);
}

.jp-c-horizontal-track {
	display: flex;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.jp-c-horizontal-track::-webkit-scrollbar {
	display: none;
}

.jp-c-horizontal-track > * {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.jp-c-sticky-cover {
	position: sticky;
	top: var(--jp-sticky-top, 0);
}

.jp-c-card-stack {
	position: relative;
}

.jp-c-card-stack > * {
	position: sticky;
	top: calc(var(--jp-stack-top, 0px) + (var(--jp-stack-index, 0) * var(--jp-stack-step, 10px)));
}

.jp-c-button:focus-visible,
.jp-c-horizontal-track a:focus-visible,
.jp-c-horizontal-track button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.jp-c-button,
	.jp-c-horizontal-track,
	.jp-c-sticky-cover,
	.jp-c-card-stack > * {
		scroll-behavior: auto;
		transition-duration: 0.01ms;
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
	}
}

/* Shared entry motion, formerly assets/css/global-motion.css. */
/* Global entry motion for frontend content. */
.jp-global-fade-target {
	opacity: 0 !important;
	animation: none !important;
	transform: translate3d(0, 14px, 0);
	transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1) !important;
	transition-delay: var(--jp-global-fade-delay, 0ms) !important;
	visibility: visible !important;
	will-change: opacity, transform;
}

.jp-global-fade-target.jp-global-fade-visible {
	opacity: 1 !important;
	transform: translate3d(0, 0, 0);
}

.jp-watermark-layer .jp-watermark-image,
.jp-watermark-layer .jp-watermark-image.jp-global-fade-target,
.jp-watermark-layer .jp-watermark-image.jp-global-fade-visible {
	opacity: 0.04 !important;
	transition: none !important;
	animation: none !important;
}

.jp-watermark-layer .jp-watermark-image img {
	filter: none !important;
	mix-blend-mode: normal !important;
}

@media (prefers-reduced-motion: reduce) {
	.jp-global-fade-target,
	.jp-global-fade-target.jp-global-fade-visible {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* Shared Elementor compatibility, formerly assets/css/elementor-replacements.css. */
/**
 * Compatibility layer for custom Elementor widgets replacing Elementor Pro widgets.
 */

body:not(.elementor-editor-active) .elementor-location-header {
	pointer-events: none;
}

body:not(.elementor-editor-active) .elementor-location-header > .elementor {
	background: transparent !important;
}

body:not(.elementor-editor-active) .elementor-location-header > * {
	pointer-events: auto;
}

body:not(.elementor-editor-active) .elementor-location-header.jp-header-fixed {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 9999 !important;
	height: 0 !important;
}

body.admin-bar:not(.elementor-editor-active) .elementor-location-header.jp-header-fixed {
	top: 32px !important;
}

@media (max-width: 782px) {
	body.admin-bar:not(.elementor-editor-active) .elementor-location-header.jp-header-fixed {
		top: 46px !important;
	}
}

.elementor-location-header .jp-native-header.elementor-section.jp-header-sticky {
	margin: 10px 20px 0 !important;
	width: calc(100% - 40px) !important;
	background: #f8faf9 !important;
	border-color: rgba(0, 53, 45, 0.08) !important;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) !important;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

@media (max-width: 920px) {
	.elementor-location-header .jp-native-header.elementor-section.jp-header-sticky {
		margin: 8px 12px 0 !important;
		width: calc(100% - 24px) !important;
	}
}

@media (max-width: 520px) {
	.elementor-location-header .jp-native-header.elementor-section.jp-header-sticky {
		margin-left: 10px !important;
		margin-right: 10px !important;
		width: calc(100% - 20px) !important;
	}
}

.jp-nav-menu-widget,
.jp-nav-menu,
.jp-nav-menu .menu-item {
	box-sizing: border-box;
}

.jp-nav-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jp-nav-menu-widget--vertical .jp-nav-menu {
	flex-direction: column;
	align-items: flex-start;
}

.jp-nav-menu .menu-item {
	position: relative;
	margin: 0;
}

.jp-nav-menu-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}

.jp-nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 12px;
	list-style: none;
	background: #f5f4f0;
	border-radius: 16px;
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
	z-index: 20;
}

.jp-nav-menu .menu-item:hover > .sub-menu,
.jp-nav-menu .menu-item:focus-within > .sub-menu {
	display: block;
}

.jp-nav-menu-toggle {
	display: none;
	position: relative;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.jp-nav-menu-toggle-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 22px;
	transform: translate(-50%, -50%);
	background: currentColor;
}

.jp-nav-menu-toggle-icon--open {
	-webkit-mask: linear-gradient(#000 0 0) center 4px / 22px 2.4px no-repeat,
		linear-gradient(#000 0 0) center / 22px 2.4px no-repeat,
		linear-gradient(#000 0 0) center 18px / 22px 2.4px no-repeat;
	mask: linear-gradient(#000 0 0) center 4px / 22px 2.4px no-repeat,
		linear-gradient(#000 0 0) center / 22px 2.4px no-repeat,
		linear-gradient(#000 0 0) center 18px / 22px 2.4px no-repeat;
}

.jp-nav-menu-toggle-icon--close {
	display: none;
	-webkit-mask: linear-gradient(#000 0 0) center / 24px 2.4px no-repeat,
		linear-gradient(#000 0 0) center / 2.4px 24px no-repeat;
	mask: linear-gradient(#000 0 0) center / 24px 2.4px no-repeat,
		linear-gradient(#000 0 0) center / 2.4px 24px no-repeat;
	transform: translate(-50%, -50%) rotate(45deg);
}

.jp-nav-menu-widget.is-open .jp-nav-menu-toggle-icon--open {
	display: none;
}

.jp-nav-menu-widget.is-open .jp-nav-menu-toggle-icon--close {
	display: block;
}

.jp-post-grid-items {
	display: grid;
	grid-template-columns: repeat(var(--jp-grid-columns, var(--grid-columns, 3)), minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

.jp-post-grid-item {
	min-width: 0;
}

.jp-post-card {
	display: flex;
	flex-direction: column;
	min-height: 439px;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(0, 53, 45, 0.08);
	border-radius: 18px;
	background: #ffffff;
	color: #111111;
	text-decoration: none;
	transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.jp-post-card:hover,
.jp-post-card:focus-visible {
	background: #f5f4f0;
	box-shadow: 0 18px 42px rgba(0, 53, 45, 0.08);
	outline: 0;
}

.jp-post-card-image {
	position: relative;
	display: block;
	width: 100%;
	height: 255px;
	overflow: hidden;
	background: #f5f4f0;
}

.jp-post-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease;
}

.jp-post-card:hover .jp-post-card-image img,
.jp-post-card:focus-visible .jp-post-card-image img {
	transform: scale(1.045);
}

.jp-post-card-pill {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 18px;
	border-radius: 999px;
	background: #00352d;
	color: #ffffff;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.jp-post-card-pill--blog {
	background: #dafba2;
	color: #00352d;
}

.jp-post-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 14px;
	padding: 28px 28px 30px;
}

.jp-post-card-meta,
.jp-post-card-date {
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(0, 28, 16, 0.46);
	font-family: "Inter", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.jp-post-card-meta {
	color: #00352d;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.jp-post-card-title {
	color: #111111;
	font-family: "TWK Everett", "Everett", "Inter", sans-serif;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.13;
	transition: color 180ms ease, text-decoration-color 180ms ease;
}

.jp-post-card:hover .jp-post-card-title,
.jp-post-card:focus-visible .jp-post-card-title {
	color: #00352d;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.jp-post-card-excerpt {
	color: rgba(17, 17, 17, 0.58);
	font-family: "Inter", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
}

.jp-post-card-date {
	margin-top: auto;
}

.jp-post-featured-image,
.jp-post-featured-image a,
.jp-post-featured-image img {
	display: block;
	width: 100%;
}

.jp-post-featured-image {
	overflow: hidden;
	border-radius: inherit;
}

.jp-post-featured-image img {
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

.jp-post-grid-item:hover .jp-post-featured-image img,
.jp-post-grid-item:focus-within .jp-post-featured-image img {
	transform: scale(1.04);
}

.jp-post-grid-pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 42px;
}

.jp-post-grid-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border-radius: 999px;
	color: #00352d;
	text-decoration: none;
}

.jp-post-grid-pagination .current {
	background: #00352d;
	color: #dafba2;
}

.jp-newsletter-form {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.jp-newsletter-form__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 58px;
	padding: 0 28px;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 999px !important;
	background: rgba(255, 255, 255, 0.06) !important;
	color: #ffffff !important;
	outline: none;
}

.jp-newsletter-form__input::placeholder {
	color: rgba(255, 255, 255, 0.74);
}

.jp-newsletter-form__input:focus {
	border-color: rgba(218, 251, 162, 0.72) !important;
	box-shadow: none !important;
}

.jp-newsletter-form__button {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	justify-content: center;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.jp-newsletter-form__button:hover,
.jp-newsletter-form__button:focus {
	text-decoration: none;
}

.jp-testimonials-slider .swiper-wrapper {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.jp-testimonials-slider .jp-testimonial-slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	pointer-events: none;
	transition: opacity 260ms ease;
}

.jp-testimonials-slider .jp-testimonial-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.jp-testimonials-slider .swiper-pagination-bullet {
	border: 0;
	padding: 0;
	cursor: pointer;
}

@media (max-width: 1024px) {
	.jp-post-grid-items {
		grid-template-columns: repeat(var(--jp-grid-columns-tablet, var(--grid-columns-tablet, 2)), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.jp-nav-menu-widget--dropdown-mobile {
		position: relative;
		width: 100%;
	}

	.jp-nav-menu-widget--dropdown-mobile .jp-nav-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-left: auto;
	}

	.jp-nav-menu-widget--dropdown-mobile .jp-nav-menu-panel {
		display: none;
		width: 100%;
	}

	.jp-nav-menu-widget--dropdown-mobile.is-open .jp-nav-menu-panel {
		display: block;
	}

	.jp-nav-menu-widget--dropdown-mobile .jp-nav-menu {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.jp-nav-menu-widget--dropdown-mobile .jp-nav-menu .sub-menu {
		position: static;
		display: block;
		box-shadow: none;
		padding: 8px 0 0 18px;
		background: transparent;
	}

	.jp-post-grid-items {
		grid-template-columns: repeat(var(--jp-grid-columns-mobile, var(--grid-columns-mobile, 1)), minmax(0, 1fr));
	}

	.jp-newsletter-form {
		flex-direction: column;
		align-items: stretch;
	}

	.jp-testimonials-slider .swiper-wrapper {
		min-height: 610px;
	}
}

/* Elementor Pro replacement parity. */
.elementor-location-header .jp-native-menu .jp-nav-menu-panel {
	width: 100%;
}

.elementor-location-header .jp-native-menu .jp-nav-menu {
	display: flex;
	flex-wrap: nowrap;
}

.elementor-location-header .jp-native-menu .elementor-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	white-space: nowrap;
}

.elementor-location-header .jp-native-menu .elementor-item:hover,
.elementor-location-header .jp-native-menu .elementor-item:focus-visible {
	outline: 0;
}

.jp-footer-nav-widget .elementor-item {
	text-decoration: none;
}

.jp-footer-nav-widget .elementor-item:hover,
.jp-footer-nav-widget .elementor-item:focus-visible {
	outline: 0;
}

@media (max-width: 1180px) {
	.elementor-location-header .jp-native-menu .elementor-item {
		padding: 10px;
		font-size: 14px;
	}
}

@media (max-width: 920px) {
	.elementor-location-header .jp-native-menu .jp-nav-menu-widget {
		position: static !important;
	}

	.elementor-location-header .jp-native-menu .jp-nav-menu-panel {
		display: none;
	}

	.elementor-location-header .jp-native-menu.is-open .jp-nav-menu-panel,
	.elementor-location-header .jp-native-menu .jp-nav-menu-panel[aria-hidden="false"] {
		display: block;
	}

	.elementor-location-header .jp-native-menu .jp-nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.elementor-location-header .jp-native-menu .elementor-item {
		width: 100%;
		padding: 12px 0;
		color: #00352d;
		fill: #00352d;
		font-size: 16px;
		line-height: 22px;
	}

}

/* Shared FAQ structure. The native Accordion control cannot express the
 * bottom-only divider or the custom icon geometry, so these stay common. */
.elementor .elementor-element.jp-faq-accordion .elementor-accordion-item {
	border: 0;
	border-bottom: 1px solid #dddddd;
	border-radius: 0 0 12px 12px;
	overflow: hidden;
	transition: background-color 0.2s ease;
}

.elementor .elementor-element.jp-faq-accordion .elementor-tab-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.elementor .elementor-element.jp-faq-accordion .elementor-accordion-title {
	flex: 1 1 auto;
	order: 1;
}

.elementor .elementor-element.jp-faq-accordion .elementor-accordion-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	order: 2;
	float: none;
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: 999px;
	background: #eeeeee;
}

.elementor .elementor-element.jp-faq-accordion .elementor-accordion-icon svg {
	display: block;
	width: 14px;
	height: 14px;
}

.elementor .elementor-element.jp-faq-accordion .elementor-tab-title.elementor-active {
	padding: 20px 21px 0;
	border-radius: 12px 12px 0 0;
	background: #f5f4f0;
}

.elementor .elementor-element.jp-faq-accordion .elementor-tab-content {
	border: 0;
}

.elementor .elementor-element.jp-faq-accordion .elementor-accordion-item:hover,
.elementor .elementor-element.jp-faq-accordion .elementor-accordion-item:focus-within {
	background-color: #f5f4f0;
}

@media (max-width: 767px) {
	.elementor .elementor-element.jp-faq-accordion .elementor-tab-title.elementor-active {
		padding: 20px 18px 0;
	}
}
