/*
 * CTA panel (components/cta-panel/) — the home page #gb-contact and the end of
 * every service page.
 *
 * The logo's navy (owner, 2026-10-06: «نفس اللون بتاع اللوجو»): white words,
 * and the small orange touches of the whole site (the eyebrow's dot, the
 * buttons under the pointer). Never orange on the logo (owner 15:47).
 *
 * Revision 13 (owner 2026-10-07 05:57 «مينفعش يبقى اللوجو كدا؟» — the logo in
 * its own colours): the mark is the official one again — turquoise frame and
 * arrow, the navy dash, the seed — with the turquoise growth line. The dash IS
 * the panel's navy, so the mark stands on a soft halo of the site's deeper
 * navy (the header's), where the dash reads as it does in the header. (From
 * revision 11 to 12 the mark was white here.)
 */

.gb-cta {
	padding-block: var(--gb-space-3xl);
	background-color: var(--gb-bg);
}

.gb-cta__panel {
	/* Re-theme the shared parts for the logo's navy (the mark keeps its own colours). */
	--gb-focus: var(--gb-color-neutral-0);
	--gb-focus-halo: var(--gb-color-turquoise);
	--gb-point-ring: var(--gb-color-white-a35);
	--gb-section-eyebrow: var(--gb-scene-text-muted);

	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	align-items: center;
	gap: var(--gb-space-l);
	overflow: hidden;
	padding-block: var(--gb-space-xl);
	padding-inline: clamp(1.5rem, 1rem + 4vw, 5rem);
	border-radius: calc(var(--gb-radius-l) * 2);
	background-color: var(--gb-color-logo-navy);
	/* A soft light from the top and a deeper navy at the bottom; centred, so direction-neutral. */
	background-image:
		radial-gradient(70% 60% at 50% 0%, rgb(255 255 255 / 0.12), transparent 70%),
		radial-gradient(60% 50% at 50% 110%, rgb(0 0 0 / 0.22), transparent 70%);
	color: var(--gb-scene-text);
}

.gb-cta__content {
	display: grid;
	justify-items: start;
	gap: var(--gb-space-s);
}

.gb-cta__title {
	font-size: var(--gb-step-5);
	color: var(--gb-scene-text);
}

.gb-cta__text {
	max-inline-size: 36ch;
	font-size: var(--gb-step-1);
}

/* Placeholders on navy: a light dashed mark. */
.gb-cta [data-gb-placeholder] {
	text-decoration-color: rgb(255 255 255 / 0.6);
}

.gb-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gb-space-xs);
	margin-block-start: var(--gb-space-2xs);
}

.gb-cta__actions .gb-icon {
	--gb-icon-size: 1.15em;
}

/* The first button: white on the navy (the navy button would vanish); orange under the pointer, like every button. */
.gb-cta__panel .gb-button--dark {
	background-color: var(--gb-color-neutral-0);
	color: var(--gb-color-logo-navy);
}

.gb-cta__panel .gb-button--dark:hover {
	background-color: var(--gb-accent);
	color: var(--gb-color-navy);
}

.gb-cta__panel .gb-button--outline:hover {
	background-color: rgb(255 255 255 / 0.1);
}

/* «الاستشارة الأولى مجانًا» under a page-specific button label. */
.gb-cta__note {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	margin: 0;
	font-size: var(--gb-step--1);
	font-weight: var(--gb-weight-bold);
}

.gb-cta__note::before {
	content: "";
	inline-size: 0.5em;
	block-size: 0.5em;
	border-radius: 50%;
	background-color: var(--gb-dot);
}

.gb-cta__methods {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gb-space-2xs) var(--gb-space-m);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gb-cta__method {
	display: inline-flex;
	align-items: center;
	gap: var(--gb-space-2xs);
	min-block-size: 2.75rem;
	font-weight: var(--gb-weight-bold);
	--gb-icon-size: 1.2rem;
}

.gb-cta__method a {
	color: inherit;
	text-decoration-color: rgb(255 255 255 / 0.5);
}

.gb-cta__method a:hover {
	text-decoration-color: var(--gb-accent);
}

/* ---------- Social accounts (owner request) ---------- */

.gb-cta__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--gb-space-2xs) var(--gb-space-s);
	margin-block-start: var(--gb-space-2xs);
}

.gb-cta__social-label {
	font-size: var(--gb-step--1);
	font-weight: var(--gb-weight-bold);
}

.gb-cta__social-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gb-space-3xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gb-cta__social-link {
	--gb-icon-size: 1.15rem;

	display: grid;
	place-items: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	border: 1.5px solid rgb(255 255 255 / 0.45);
	border-radius: 50%;
	color: var(--gb-scene-text);
	transition: background-color var(--gb-duration-fast) linear, color var(--gb-duration-fast) linear, border-color var(--gb-duration-fast) linear;
}

.gb-cta__social-link:hover {
	border-color: var(--gb-accent);
	background-color: var(--gb-accent);
	color: var(--gb-color-navy);
}

/* ---------- Visual ---------- */

.gb-cta__visual {
	position: relative;
	isolation: isolate;
	justify-self: center;
	inline-size: min(100%, 17rem);
	aspect-ratio: 300 / 360;
}

/* The deeper navy behind the mark: the logo's navy dash shows on it, as in the header. */
.gb-cta__visual::before {
	content: "";
	position: absolute;
	inset: -14% -22%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(closest-side, var(--gb-color-navy) 0%, rgb(12 35 66 / 0.85) 45%, rgb(12 35 66 / 0.35) 75%, transparent 100%);
	pointer-events: none;
}

.gb-cta__art {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	overflow: visible;
}

.gb-cta__line {
	fill: none;
	stroke: var(--gb-color-turquoise);
	stroke-width: 4px;
	stroke-linecap: round;
}

/* Small screens: the art becomes a compact emblem above the text. */
@media (max-width: 46rem) {
	.gb-cta__visual {
		order: -1;
		inline-size: 9rem;
	}
}

/*
 * FULL / OPTIMIZED: when the panel appears, the line and the mark draw
 * themselves (pathLength="1" strokes). The resting style is the fully drawn
 * mark, so nothing depends on the transition finishing.
 */
:root[data-gb-appear-ready]:is([data-gb-experience="FULL"], [data-gb-experience="OPTIMIZED"]) .gb-cta__art .gb-draw {
	stroke-dasharray: 1;
	transition: stroke-dashoffset calc(var(--gb-duration-reveal) * 2) var(--gb-ease-organic);
}

:root[data-gb-appear-ready]:is([data-gb-experience="FULL"], [data-gb-experience="OPTIMIZED"]) .gb-cta__art .gb-mark .gb-draw {
	transition-delay: calc(var(--gb-duration-reveal) * 0.8);
}

:root[data-gb-appear-ready]:is([data-gb-experience="FULL"], [data-gb-experience="OPTIMIZED"]) .gb-cta__panel:not([data-gb-appeared]) .gb-draw {
	stroke-dashoffset: 1;
}
