/**
 * DMF CTA Banner
 *
 * Title + description + up to two buttons, with an optional photo on one side.
 * With no image the content spans the full width. Background defaults to the
 * brand gradient (`.dmf-cta-bg-brand`); the Custom preset lets Elementor's
 * background group control take over.
 *
 * Colors/sizes are defaults; most are overridable via the widget's Style tab.
 */

.dmf-cta-banner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	padding: 56px;
	border-radius: 24px;
	color: #ffffff;
}

/* When an image is present, lay content + media side by side. */
.dmf-cta-banner--has-media {
	flex-direction: row;
	align-items: center;
}

.dmf-cta-banner--has-media.dmf-cta-banner--media-left {
	flex-direction: row-reverse;
}

/* --- Brand gradient preset (seeded from the screenshot; tweak freely) --- */
.dmf-cta-bg-brand .dmf-cta-banner {
	background-image: linear-gradient(180deg, #1a6e63 0%, #0a3a57 55%, #042a45 100%);
}

/* --- Content --- */

.dmf-cta-banner__content {
	flex: 1 1 auto;
	min-width: 0;
}

.dmf-cta-banner__title {
	margin: 0 0 16px;
	color: inherit;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.1;
}

.dmf-cta-banner__description {
	margin: 0 0 28px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 17px;
	line-height: 1.6;
}

.dmf-cta-banner__description p {
	margin: 0 0 1em;
}

.dmf-cta-banner__description p:last-child {
	margin-bottom: 0;
}

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

.dmf-cta-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.dmf-cta-banner__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: 6px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Icon is mobile/tablet-only — desktop keeps the laptop photo instead. */
.dmf-cta-banner__button-icon {
	display: none;
	align-items: center;
	line-height: 0;
	flex-shrink: 0;
}

.dmf-cta-banner__button-icon svg,
.dmf-cta-banner__button-icon i {
	width: 1.125em;
	height: 1.125em;
}

.dmf-cta-banner__button--outline {
	background-color: transparent;
}

/* --- Media --- */

.dmf-cta-banner__media {
	flex: 0 0 auto;
	flex-basis: 42%;
}

.dmf-cta-banner__media img {
	display: block;
	width: 100%;
	height: auto;
}

/* --- Responsive: stack on tablet/mobile, compact spacing --- */

@media (max-width: 1023px) {
	.dmf-cta-banner--has-media,
	.dmf-cta-banner--has-media.dmf-cta-banner--media-left {
		flex-direction: column;
		align-items: stretch;
	}

	.dmf-cta-banner {
		gap: 20px;
		padding: 40px 32px;
	}

	.dmf-cta-banner__media {
		display: none;
	}

	.dmf-cta-banner__button--1 .dmf-cta-banner__button-icon {
		display: inline-flex;
	}
}

@media (max-width: 767px) {
	.dmf-cta-banner,
	.dmf-cta-banner--has-media,
	.dmf-cta-banner--has-media.dmf-cta-banner--media-left {
		padding: 28px 20px;
		/* Safety net against the desktop bleed margin leaking onto phones on
		   pages whose Elementor CSS predates the zeroed tablet/mobile margin
		   defaults (regenerate CSS to pick those up). */
		margin-left: 0;
		margin-right: 0;
	}

	.dmf-cta-banner__title {
		font-size: 26px;
		line-height: 1.15;
	}

	.dmf-cta-banner__description {
		font-size: 15px;
		margin-bottom: 20px;
	}

	.dmf-cta-banner__actions {
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.dmf-cta-banner {
		padding: 24px 16px;
	}

	.dmf-cta-banner__title {
		font-size: 24px;
	}
}

/* "Full-Width Buttons on Mobile" switcher (prefix class on the widget
   wrapper): stack the actions and stretch each button on small phones. */
@media (max-width: 480px) {
	.dmf-cta-buttons-full-yes .dmf-cta-banner__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.dmf-cta-buttons-full-yes .dmf-cta-banner__button {
		width: 100%;
		justify-content: center;
	}
}
