
/* ===========================
   Phone CTA Bar
=========================== */

/* ---------------------------------------------------------------
   Brand purple ramp
   Theme --tertiary (#958db4) is the brand purple, but it only reaches
   3.11:1 against white text, so it cannot carry a white-text surface.
   These three steps hold the same hue (~253deg) and are darkened until
   the contrast passes:
     --pcta-purple       white text on it        5.81:1
     --pcta-purple-deep  white text 10.2:1, as ink on gold 4.72:1
     --pcta-purple-ink   as text on white 9.39:1, on light sand 7.35:1
--------------------------------------------------------------- */
.phonectabar-block {
	--pcta-purple: #6b5b9e;
	--pcta-purple-deep: #453a68;
	--pcta-purple-ink: #4a3f70;
}

.phonectabar-block {
	background-color: var(--pcta-purple);
}

.phonectabar-block--sand {
	background-color: var(--secondary);
}

.phonectabar-block--dark {
	background-color: var(--pcta-purple-deep);
}

.phonectabar-block--light {
	background-color: #ece2d8;
	border-top: 1px solid rgba(198, 174, 118, .45);
	border-bottom: 1px solid rgba(198, 174, 118, .45);
}

.phonectabar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding-top: 34px;
	padding-bottom: 34px;
}

.phonectabar-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.phonectabar-eyebrow {
	display: block;
	font-family: var(--font2);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .9);
	margin-bottom: 10px;
}

.phonectabar-heading {
	margin: 0;
	color: #fff;
	font-size: 1.85rem;
}

.phonectabar-text {
	margin: 10px 0 0;
	max-width: 620px;
	color: rgba(255, 255, 255, .85);
}

/* Gold is too light for white text (2.16:1) - the sand band runs on deep purple ink instead. */
.phonectabar-block--sand .phonectabar-eyebrow, .phonectabar-block--sand .phonectabar-heading, .phonectabar-block--sand .phonectabar-text {
	color: var(--pcta-purple-deep);
}

.phonectabar-block--light .phonectabar-eyebrow {
	color: #7a5f22;
}

.phonectabar-block--light .phonectabar-heading {
	color: var(--pcta-purple-ink);
}

.phonectabar-block--light .phonectabar-text {
	color: #333131;
}

.phonectabar-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	flex: 0 0 auto;
}

/* Call button */
.phonectabar-phone {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	color: var(--pcta-purple);
	font-family: var(--font2);
	text-decoration: none;
	padding: 15px 32px;
	border-radius: 9999px;
	transition: background-color .3s ease, color .3s ease, transform .3s ease;
	white-space: nowrap;
}

.phonectabar-phone:hover {
	background: var(--secondary);
	color: #fff;
	transform: translateY(-2px);
}

.phonectabar-block--sand .phonectabar-phone:hover {
	background: var(--pcta-purple);
	color: #fff;
}

.phonectabar-block--light .phonectabar-phone {
	background: var(--pcta-purple);
	color: #fff;
}

.phonectabar-block--light .phonectabar-phone:hover {
	background: var(--secondary);
	color: #fff;
}

.phonectabar-phone-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(107, 91, 158, .12);
	font-size: 15px;
	flex: 0 0 auto;
}

.phonectabar-block--light .phonectabar-phone-icon, .phonectabar-phone:hover .phonectabar-phone-icon {
	background: rgba(255, 255, 255, .2);
}

.phonectabar-phone-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.phonectabar-phone-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: .95;
	margin-bottom: 3px;
}

.phonectabar-phone-number {
	font-size: 1.3rem;
	font-weight: 700;
}

/* Secondary link */
.phonectabar-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font2);
	font-size: .95rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	padding: 15px 30px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 9999px;
	transition: background-color .3s ease, border-color .3s ease, color .3s ease;
	white-space: nowrap;
}

.phonectabar-link:hover {
	background: rgba(255, 255, 255, .16);
	border-color: #fff;
	color: #fff;
}

.phonectabar-block--light .phonectabar-link {
	color: var(--pcta-purple-ink);
	border-color: rgba(74, 63, 112, .4);
}

.phonectabar-block--light .phonectabar-link:hover {
	background: rgba(74, 63, 112, .08);
	border-color: var(--pcta-purple-ink);
	color: var(--pcta-purple-ink);
}

@media (max-width: 1199px) {
	.phonectabar-inner {
		flex-direction: column;
		text-align: center;
		gap: 28px;
		padding-top: 40px;
		padding-bottom: 40px;
	}
	
	.phonectabar-text {
		margin-left: auto;
		margin-right: auto;
	}
	
	.phonectabar-actions {
		justify-content: center;
	}
}

@media (max-width: 767px) {
	.phonectabar-inner {
		padding-top: 34px;
		padding-bottom: 34px;
	}
	
	.phonectabar-heading {
		font-size: 1.5rem;
	}
	
	.phonectabar-actions {
		width: 100%;
		flex-direction: column;
		gap: 12px;
	}
	
	.phonectabar-phone, .phonectabar-link {
		width: 100%;
		justify-content: center;
	}
}

.phonectabar-block--sand .phonectabar-link {
	color: var(--pcta-purple-deep);
	border-color: rgba(69, 58, 104, .45);
}

.phonectabar-block--sand .phonectabar-link:hover {
	background: rgba(69, 58, 104, .1);
	border-color: var(--pcta-purple-deep);
	color: var(--pcta-purple-deep);
}
