/* =========================================================================
   Overlap CTA Card
   Lightweight, theme-agnostic styles (safe alongside Salient + WPBakery).
   All customizable values are exposed as CSS custom properties, set
   inline per-instance from the shortcode/VC element attributes.
   ========================================================================= */

.occ-wrapper {
	--occ-accent: #e08e1d;
	--occ-text: #1b2a4e;
	--occ-box-width: 42%;
	--occ-overlap: 60px;      /* how far the box overlaps the image on desktop */
	--occ-box-pad: 48px;

	position: relative;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	box-sizing: border-box;
}

.occ-wrapper *,
.occ-wrapper *::before,
.occ-wrapper *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------
   Image
   --------------------------------------------------------------------- */
.occ-image-holder {
	width: 100%;
	overflow: hidden;
	border-radius: 4px;
}

.occ-image-holder img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.occ-ratio-square img    { aspect-ratio: 1 / 1; }
.occ-ratio-portrait img  { aspect-ratio: 3 / 4; }
.occ-ratio-landscape img { aspect-ratio: 16 / 9; }
.occ-ratio-auto img      { aspect-ratio: auto; }

/* ---------------------------------------------------------------------
   The overlapping CTA box
   --------------------------------------------------------------------- */
.occ-cta-box {
	position: relative;
	z-index: 2;
	width: var(--occ-box-width);
	min-width: 260px;
	max-width: 92%;
	margin-top: calc(-1 * var(--occ-overlap));
	margin-left: 8%;
	padding: var(--occ-box-pad);
	background-color: var(--occ-accent);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* Box on the right side of the image instead of left */
.occ-box-right .occ-cta-box {
	margin-left: auto;
	margin-right: 8%;
}

.occ-cta-title {
	margin: 0 0 18px;
	color: var(--occ-text);
	font-size: 1.6rem;
	line-height: 1.25;
	font-weight: 600;
}

.occ-cta-text {
	margin: 0 0 26px;
	color: var(--occ-text);
	font-size: 1rem;
	line-height: 1.6;
	opacity: 0.92;
}

.occ-cta-text p {
	margin: 0;
}

.occ-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--occ-text);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	letter-spacing: 0.02em;
	border-bottom: 2px solid transparent;
	transition: gap 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.occ-cta-btn:hover,
.occ-cta-btn:focus {
	gap: 16px;
	border-color: var(--occ-text);
	opacity: 0.85;
	color: var(--occ-text);
}

.occ-cta-btn svg {
	flex-shrink: 0;
}

/* =========================================================================
   Responsive behaviour
   - Large tablets: overlap shrinks a bit.
   - Small tablets / large phones: overlap becomes modest, box widens.
   - Phones: overlap collapses entirely — box sits directly under the
     image, full width, so nothing ever clips or breaks.
   ========================================================================= */

@media (max-width: 1024px) {
	.occ-wrapper {
		--occ-overlap: 40px;
		--occ-box-pad: 36px;
	}
	.occ-cta-box {
		width: calc(var(--occ-box-width) + 10%);
	}
}

@media (max-width: 767px) {
	.occ-wrapper {
		--occ-overlap: 24px;
		--occ-box-pad: 28px;
	}
	.occ-cta-box,
	.occ-box-right .occ-cta-box {
		width: 88%;
		margin-left: 6%;
		margin-right: 6%;
	}
	.occ-cta-title {
		font-size: 1.35rem;
	}
}

@media (max-width: 479px) {
	.occ-wrapper {
		--occ-overlap: 0px;
		--occ-box-pad: 22px;
	}
	.occ-cta-box,
	.occ-box-right .occ-cta-box {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		margin-top: 0;
	}
	.occ-cta-title {
		font-size: 1.2rem;
	}
	.occ-cta-text {
		font-size: 0.95rem;
	}
}

/* ---------------------------------------------------------------------
   Salient-specific safety net: Salient's nectar-* wrappers sometimes add
   their own max-width/overflow rules to row children. This keeps the
   negative margin from being clipped inside a WPBakery row/column.
   --------------------------------------------------------------------- */
.wpb_row .occ-wrapper,
.vc_row .occ-wrapper {
	overflow: visible;
}

.wpb_column,
.vc_column-inner {
	overflow: visible !important;
}
