/**
 * Component: Call To Action (CTA Banner, CTA Card)
 * ---------------------------------------------------------------------------
 * File: assets/css/components/cta.css
 * PHP: template-parts/components/cta-banner.php, cta-card.php
 */


/* ==========================================================================
   CTA BANNER
   ========================================================================== */

   .gdq-cta-banner {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding-block: var(--gdq-space-7);
}

.gdq-cta-banner--solid {
	background-color: var(--gdq-color-bg-surface);
}


/* ==========================================================================
   CTA IMAGE BACKGROUND
   ========================================================================== */

.gdq-cta-banner--image .gdq-cta-banner__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.gdq-cta-banner--image .gdq-cta-banner__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/* ==========================================================================
   CTA IMAGE OVERLAY
   ========================================================================== */

.gdq-cta-banner__overlay {
	position: absolute;
	inset: 0;

	background-color: var(--gdq-color-bg-primary);

	opacity: 0.72;
}


/* ==========================================================================
   CTA CONTENT
   ========================================================================== */

.gdq-cta-banner__inner {
	position: relative;
	z-index: 1;
}

.gdq-cta-banner__heading {
	margin-top: var(--gdq-space-2);
}

.gdq-cta-banner__accent {
	color: var(--gdq-color-accent);
}

.gdq-cta-banner__intro {
	margin-inline: auto;
	margin-top: var(--gdq-space-3);
}

.gdq-cta-banner__actions {
	display: flex;
	flex-direction: column;
	gap: var(--gdq-space-2);
	margin-top: var(--gdq-space-4);
}

.gdq-cta-banner__actions .gdq-button {
	width: 100%;
}

.gdq-cta-banner__extra {
	margin-top: var(--gdq-space-3);
	color: var(--gdq-color-text-body);
}

.gdq-cta-banner__extra a {
	color: var(--gdq-color-accent);
}


/* ==========================================================================
   CTA BUTTONS — TABLET / DESKTOP
   ========================================================================== */

@media (min-width: 768px) {

	.gdq-cta-banner__actions {
		flex-direction: row;
		justify-content: center;
	}

	.gdq-cta-banner__actions .gdq-button {
		width: auto;
	}

}


/* ==========================================================================
   CTA CARD
   ========================================================================== */

.gdq-cta-card {
	text-align: center;
}

.gdq-cta-card__heading {
	margin-bottom: var(--gdq-space-2);
}

.gdq-cta-card__text {
	color: var(--gdq-color-text-body);
	margin-bottom: var(--gdq-space-3);
}


/* ==========================================================================
   CTA IMAGE PLACEHOLDER
   ========================================================================== */

.gdq-cta-banner__image-placeholder {
	position: relative;
	width: 100%;
	min-height: 260px;
	margin-top: var(--gdq-space-6);

	display: flex;
	align-items: center;
	justify-content: center;

	background:
		linear-gradient(
			135deg,
			var(--gdq-color-bg-surface-alt),
			var(--gdq-color-bg-primary)
		);

	border: 1px solid var(--gdq-color-border);
	border-radius: var(--gdq-radius-md);

	overflow: hidden;
	box-sizing: border-box;
}


/* ==========================================================================
   CTA IMAGE PLACEHOLDER — INNER FRAME
   ========================================================================== */

.gdq-cta-banner__image-placeholder::before {
	content: "";

	position: absolute;
	inset: var(--gdq-space-4);

	border: 1px dashed var(--gdq-color-border);

	pointer-events: none;
}


/* ==========================================================================
   CTA IMAGE PLACEHOLDER — LABEL
   ========================================================================== */

.gdq-cta-banner__image-placeholder-label {
	position: relative;
	z-index: 1;

	color: var(--gdq-color-accent);

	font-size: var(--gdq-text-eyebrow-size);
	font-weight: var(--gdq-text-eyebrow-weight);

	letter-spacing: var(--gdq-text-eyebrow-ls);
	line-height: 1.3;

	text-align: center;
	text-transform: uppercase;
}


/* ==========================================================================
   CTA IMAGE PLACEHOLDER — MOBILE
   ========================================================================== */

@media (max-width: 767px) {

	.gdq-cta-banner__image-placeholder {
		min-height: 220px;
		margin-top: var(--gdq-space-5);
	}

	.gdq-cta-banner__image-placeholder::before {
		inset: var(--gdq-space-2);
	}

}


/* ==========================================================================
   HOME + ABOUT US CTA
   ========================================================================== */

.gdq-cta-home,
.gdq-cta-about {
	position: relative;
	overflow: hidden;
}


/* ==========================================================================
   HOME + ABOUT US CTA BANNER
   ========================================================================== */

.gdq-cta-home .gdq-cta-banner,
.gdq-cta-about .gdq-cta-banner {
	position: relative;
	overflow: hidden;

	background-color: #071222;

	isolation: isolate;
}


/* ==========================================================================
   HOME CTA IMAGE
   ========================================================================== */

.gdq-cta-home .gdq-cta-banner::before {
	content: "";

	position: absolute;
	inset: 0;

	display: block;

	background-image:
		url("/wp-content/uploads/2026/09/CTA-Home-Page.jpeg");

	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;

	border: 1px solid var(--gdq-color-border);

	pointer-events: none;

	z-index: 0;
}


/* ==========================================================================
   ABOUT US CTA IMAGE
   --------------------------------------------------------------------------
   Same treatment as Home CTA, using the dedicated About Us image.
   ========================================================================== */

.gdq-cta-about .gdq-cta-banner::before {
	content: "";

	position: absolute;
	inset: 0;

	display: block;

	background-image:
		url("/wp-content/uploads/2026/09/CTA-About-Us.jpeg");

	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;

	border: 1px solid var(--gdq-color-border);

	pointer-events: none;

	z-index: 0;
}


/* ==========================================================================
   HOME + ABOUT US CTA — BLACK IMAGE OVERLAY
   --------------------------------------------------------------------------
   This is the same 58% black treatment used on the Home CTA.

   The image remains visible underneath the overlay.
   ========================================================================== */

.gdq-cta-home .gdq-cta-banner::after,
.gdq-cta-about .gdq-cta-banner::after {
	content: "";

	position: absolute;
	inset: 0;

	background: rgba(0, 0, 0, 0.58);

	pointer-events: none;

	z-index: 1;
}


/* ==========================================================================
   HOME + ABOUT US CTA CONTENT
   ========================================================================== */

.gdq-cta-home .gdq-cta-banner__inner,
.gdq-cta-about .gdq-cta-banner__inner {
	position: relative;
	z-index: 3;

	margin-inline: auto;
}


/* ==========================================================================
   HOME + ABOUT US CTA — BLACK GHOST COPY
   --------------------------------------------------------------------------
   The actual copy remains unchanged.

   The black blurred treatment is created through text-shadow.
   ========================================================================== */

.gdq-cta-home .gdq-cta-banner__heading,
.gdq-cta-about .gdq-cta-banner__heading {
	position: relative;
	z-index: 3;

	text-shadow:
		0 0 2px rgba(0, 0, 0, 1.00),
		0 0 7px rgba(0, 0, 0, 1.00),
		0 0 16px rgba(0, 0, 0, 0.95),
		0 0 30px rgba(0, 0, 0, 0.80),
		0 3px 45px rgba(0, 0, 0, 0.65);
}


/* ==========================================================================
   HOME + ABOUT US CTA — INTRO COPY GHOST
   ========================================================================== */

.gdq-cta-home .gdq-cta-banner__intro,
.gdq-cta-about .gdq-cta-banner__intro {
	position: relative;
	z-index: 3;

	text-shadow:
		0 0 2px rgba(0, 0, 0, 1.00),
		0 0 7px rgba(0, 0, 0, 1.00),
		0 0 15px rgba(0, 0, 0, 0.95),
		0 0 28px rgba(0, 0, 0, 0.80);
}


/* ==========================================================================
   HOME + ABOUT US CTA — EYEBROW GHOST
   ========================================================================== */

.gdq-cta-home .gdq-cta-banner .eyebrow,
.gdq-cta-about .gdq-cta-banner .eyebrow {
	position: relative;
	z-index: 3;

	text-shadow:
		0 0 2px rgba(0, 0, 0, 1.00),
		0 0 8px rgba(0, 0, 0, 1.00),
		0 0 18px rgba(0, 0, 0, 0.90);
}


/* ==========================================================================
   HOME + ABOUT US CTA — EXTRA COPY GHOST
   ========================================================================== */

.gdq-cta-home .gdq-cta-banner__extra,
.gdq-cta-about .gdq-cta-banner__extra {
	position: relative;
	z-index: 3;

	text-shadow:
		0 0 2px rgba(0, 0, 0, 1.00),
		0 0 7px rgba(0, 0, 0, 1.00),
		0 0 16px rgba(0, 0, 0, 0.90);
}


/* ==========================================================================
   HOME + ABOUT US CTA — BUTTON GHOST
   --------------------------------------------------------------------------
   Existing buttons are preserved.

   Only the black blurred separation treatment remains.
   ========================================================================== */

.gdq-cta-home .gdq-cta-banner__actions .gdq-button,
.gdq-cta-about .gdq-cta-banner__actions .gdq-button {
	position: relative;
	z-index: 3;

	filter:
		drop-shadow(0 0 2px rgba(0, 0, 0, 1.00))
		drop-shadow(0 0 8px rgba(0, 0, 0, 1.00))
		drop-shadow(0 0 18px rgba(0, 0, 0, 0.95))
		drop-shadow(0 0 32px rgba(0, 0, 0, 0.70));

	transition:
		transform 300ms ease,
		filter 300ms ease;
}


/* ==========================================================================
   HOME + ABOUT US CTA — BUTTON HOVER
   ========================================================================== */

.gdq-cta-home .gdq-cta-banner__actions .gdq-button:hover,
.gdq-cta-about .gdq-cta-banner__actions .gdq-button:hover {
	transform: translateY(-3px);

	filter:
		drop-shadow(0 0 3px rgba(0, 0, 0, 1.00))
		drop-shadow(0 0 10px rgba(0, 0, 0, 1.00))
		drop-shadow(0 0 22px rgba(0, 0, 0, 0.95))
		drop-shadow(0 10px 26px rgba(0, 0, 0, 0.70));
}


/* ==========================================================================
   HOME + ABOUT US CTA — SOFT GHOST DEPTH
   ========================================================================== */

.gdq-cta-home .gdq-cta-banner__inner::before,
.gdq-cta-about .gdq-cta-banner__inner::before {
	content: "";

	position: absolute;
	inset: -24px;

	background:
		radial-gradient(
			ellipse at center,
			rgba(0, 0, 0, 0.20) 0%,
			rgba(0, 0, 0, 0.10) 45%,
			rgba(0, 0, 0, 0) 75%
		);

	filter: blur(20px);

	z-index: -1;

	pointer-events: none;
}


/* ==========================================================================
   HOME + ABOUT US CTA — MOBILE
   ========================================================================== */

@media (max-width: 767px) {

	.gdq-cta-home .gdq-cta-banner::after,
	.gdq-cta-about .gdq-cta-banner::after {
		background: rgba(0, 0, 0, 0.52);
	}

	.gdq-cta-home .gdq-cta-banner::before,
	.gdq-cta-about .gdq-cta-banner::before {
		background-size: cover;
		background-position: center center;
	}

	.gdq-cta-home .gdq-cta-banner__inner,
	.gdq-cta-about .gdq-cta-banner__inner {
		margin-inline: 16px;
	}

	.gdq-cta-home .gdq-cta-banner__heading,
	.gdq-cta-about .gdq-cta-banner__heading {
		text-shadow:
			0 0 2px rgba(0, 0, 0, 1.00),
			0 0 8px rgba(0, 0, 0, 1.00),
			0 0 18px rgba(0, 0, 0, 0.95),
			0 0 30px rgba(0, 0, 0, 0.75);
	}

	.gdq-cta-home .gdq-cta-banner__intro,
	.gdq-cta-about .gdq-cta-banner__intro {
		text-shadow:
			0 0 2px rgba(0, 0, 0, 1.00),
			0 0 7px rgba(0, 0, 0, 1.00),
			0 0 16px rgba(0, 0, 0, 0.90);
	}

	.gdq-cta-home .gdq-cta-banner__actions .gdq-button,
	.gdq-cta-about .gdq-cta-banner__actions .gdq-button {
		filter:
			drop-shadow(0 0 2px rgba(0, 0, 0, 1.00))
			drop-shadow(0 0 8px rgba(0, 0, 0, 1.00))
			drop-shadow(0 0 18px rgba(0, 0, 0, 0.95))
			drop-shadow(0 0 28px rgba(0, 0, 0, 0.70));
	}

}