/* Tappable phone number ("click-to-call") component.
 *
 * Rendered by the Auto_Repair_Phone class in inc/class-auto-repair-phone.php.
 * Depends on the --mytheme-* design tokens declared in responsive.css, with
 * hard-coded fallbacks so the component still renders if that sheet is absent.
 */

.tappable-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: var(--mytheme-touch, 44px);
	padding: 0.6rem 1rem;
	border-radius: 999px;
	background: var(--mytheme-accent, #c8281e);
	color: #ffffff;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	box-shadow: var(--mytheme-shadow, 0 6px 20px rgba(16, 32, 44, 0.14));
	transition:
		background-color var(--mytheme-duration, 220ms) var(--mytheme-ease, ease),
		box-shadow var(--mytheme-duration, 220ms) var(--mytheme-ease, ease),
		transform var(--mytheme-duration, 220ms) var(--mytheme-ease, ease);
}

.tappable-phone:hover,
.tappable-phone:focus {
	background: var(--mytheme-accent-dark, #a71d15);
	color: #ffffff;
	text-decoration: none;
}

/* Keyboard focus ring for accessibility. */
.tappable-phone:focus-visible {
	outline: 3px solid var(--mytheme-accent, #c8281e);
	outline-offset: 3px;
}

.tappable-phone__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tappable-phone__icon svg {
	display: block;
	width: 1.5em;
	height: 1.5em;
}

.tappable-phone__body {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.tappable-phone__label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.9;
}

.tappable-phone__number {
	/* Large, high-contrast number — the primary tap target. */
	font-size: 1.25rem;
	font-weight: 800;
	white-space: nowrap;
}

/* Header placement: sits alongside the nav; slightly tighter. */
.tappable-phone--header {
	padding: 0.45rem 0.85rem;
}

.tappable-phone--header .tappable-phone__number {
	font-size: 1.1rem;
}

/* ---------------------------------------------------------------------------
 * Hero modifier — the dominant, unmissable primary CTA.
 * ------------------------------------------------------------------------- */
.tappable-phone--hero {
	gap: 0.9rem;
	padding: 1.1rem 2rem;
	border-radius: var(--mytheme-radius, 12px);
	box-shadow: var(--mytheme-shadow-lg, 0 16px 40px rgba(16, 32, 44, 0.24));
}

.tappable-phone--hero:hover {
	transform: translateY(-2px);
	box-shadow: var(--mytheme-shadow-lg, 0 20px 48px rgba(16, 32, 44, 0.28));
}

.tappable-phone--hero .tappable-phone__icon svg {
	width: 2em;
	height: 2em;
}

.tappable-phone--hero .tappable-phone__label {
	font-size: 0.85rem;
}

.tappable-phone--hero .tappable-phone__number {
	font-size: clamp(1.8rem, 5vw, 2.6rem);
	letter-spacing: 0.01em;
}

@media (min-width: 768px) {
	.tappable-phone--hero {
		padding: 1.3rem 2.75rem;
	}
}

/* ---------------------------------------------------------------------------
 * Front-page hero band that showcases the click-to-call CTA.
 * ------------------------------------------------------------------------- */
.click-to-call-hero {
	position: relative;
	padding: clamp(3rem, 8vw, 6rem) 1.25rem;
	text-align: center;
	color: #ffffff;
	background:
		linear-gradient(135deg, rgba(16, 32, 44, 0.86), rgba(16, 32, 44, 0.72)),
		linear-gradient(135deg, #1f2a37, #3a4a5e);
	background-size: cover;
	background-position: center;
}

.click-to-call-hero__inner {
	max-width: var(--mytheme-maxw, 1100px);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
}

.click-to-call-hero__title {
	margin: 0;
	font-size: clamp(2rem, 6vw, 3.25rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.click-to-call-hero__subtitle {
	margin: 0;
	max-width: 46ch;
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

.click-to-call-hero__cta {
	margin-top: 0.5rem;
	display: flex;
	justify-content: center;
}

.click-to-call-hero__note {
	margin: 0;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
}

@media (prefers-reduced-motion: reduce) {
	.tappable-phone,
	.tappable-phone--hero:hover {
		transition: none;
		transform: none;
	}
}
