/* sections/cta.php */
.ct-section {
	box-sizing: border-box; width: 100%;
	/* No bottom padding: the footer's own top padding follows directly, on the same navy. */
	padding: var(--space-7) var(--space-gutter) 0;
	/* Flat reference navy, the footer's: computes to #061e48. No gradient or glow on top. */
	--ct-blue: color-mix(in srgb, var(--c-primary) 8%, var(--c-primary-dark));
	background: var(--ct-blue); color: var(--c-text);
	font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.6;
}
.ct-section *, .ct-section *::before, .ct-section *::after { box-sizing: border-box; }
.ct-icon { flex: none; width: 1.25rem; height: 1.25rem; }
.ct-inner { max-width: var(--container); margin: 0 auto; }

.ct-card {
	display: grid; gap: var(--space-5); padding: var(--space-5);
	border-radius: var(--radius-lg) 3rem var(--radius-lg) 3rem; background: var(--c-surface); box-shadow: var(--shadow-lg);
}
.ct-card > * { min-width: 0; }
.ct-label {
	display: inline-flex; align-items: center; gap: var(--space-2);
	margin: 0 0 var(--space-3); padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-pill); background: var(--c-primary-soft); color: var(--c-primary);
	font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.ct-label::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c-accent); }
.ct-section .ct-title {
	margin: 0; color: var(--c-heading);
	font-family: var(--f-heading); font-size: var(--fs-2xl); font-weight: 800;
	line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance;
}
.ct-text { max-width: 36rem; margin: var(--space-3) 0 0; color: var(--c-text-muted); font-size: var(--fs-lg); }
.ct-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.ct-fact { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--c-heading); font-size: var(--fs-sm); font-weight: 600; }
.ct-fact .ct-icon { width: 1.125rem; height: 1.125rem; color: var(--c-accent); stroke-width: 2.4; }

/* Actions: two pills of the same width, then the phone */
.ct-actions { display: grid; gap: var(--space-3); align-content: center; }
.ct-section .ct-btn {
	display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
	min-height: 3.5rem; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
	border: 1px solid transparent; border-radius: var(--radius-pill);
	font: 700 var(--fs-base)/1.2 var(--f-body); text-decoration: none;
	transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.ct-section .ct-btn:hover, .ct-section .ct-btn:focus { transform: translateY(-2px); }
.ct-badge {
	display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
	transition: background-color 0.25s, color 0.25s, transform 0.25s;
}
.ct-badge .ct-icon { transition: transform 0.25s; }
.ct-btn:hover .ct-badge, .ct-btn:focus-visible .ct-badge { transform: scale(1.06); }
/* Quote: red pill, white badge whose arrow swings to the right on hover */
.ct-section .ct-btn--quote { background: var(--c-accent); color: var(--c-on-accent); box-shadow: var(--shadow-md); }
.ct-section .ct-btn--quote:hover, .ct-section .ct-btn--quote:focus { background: var(--c-accent-hover); color: var(--c-on-accent); }
.ct-btn--quote .ct-badge { background: var(--c-surface); color: var(--c-accent); }
.ct-btn--quote .ct-badge .ct-icon { transform: rotate(-45deg); }
.ct-btn--quote:hover .ct-badge .ct-icon, .ct-btn--quote:focus-visible .ct-badge .ct-icon { transform: rotate(0deg); }
/* Contact: outlined navy pill that fills on hover */
.ct-section .ct-btn--contact { border-color: var(--c-primary); background: var(--c-surface); color: var(--c-primary); }
.ct-section .ct-btn--contact:hover, .ct-section .ct-btn--contact:focus { background: var(--c-primary); color: var(--c-on-primary); }
.ct-btn--contact .ct-badge { background: var(--c-primary-soft); color: var(--c-primary); }
.ct-section .ct-btn:focus-visible, .ct-section .ct-phone:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }

/* Phone: the pulsing red icon of the header call button */
.ct-section .ct-phone {
	display: flex; align-items: center; gap: var(--space-3); padding: var(--space-1);
	border-radius: var(--radius-pill); color: var(--c-heading); text-decoration: none;
}
.ct-phone-icon {
	position: relative; display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem;
	border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent);
}
.ct-phone-icon::after {
	content: ""; position: absolute; inset: 0; border: 2px solid var(--c-accent); border-radius: 50%;
	animation: ct-pulse 2s ease-out infinite;
}
@keyframes ct-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.55); opacity: 0; } }
.ct-phone-label { display: block; color: var(--c-accent); font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; }
.ct-phone-number { display: block; font-size: var(--fs-lg); font-weight: 800; line-height: 1.2; white-space: nowrap; }
.ct-section .ct-phone:hover .ct-phone-number, .ct-section .ct-phone:focus .ct-phone-number { color: var(--c-primary); }

@media (min-width: 768px) {
	.ct-card { padding: var(--space-6); }
}
@media (min-width: 1024px) {
	.ct-section { padding-top: var(--space-8); }
	.ct-card { grid-template-columns: minmax(0, 1fr) 21rem; gap: var(--space-8); align-items: center; padding: var(--space-7); }
}
@media (prefers-reduced-motion: reduce) {
	.ct-section *, .ct-section *::after { animation: none !important; transition: none !important; }
}
