/*
 * Signature Dental: service chooser ("Where would you like to begin?") and mobile call bar
 * ---------------------------------------------------------------------------
 * Loaded after main.css by inc/service-paths.php and reuses its design tokens.
 *   A. Service chooser section   template-parts/service-paths.php, shortcode [sd_service_paths]
 *   B. Mobile sticky call bar    template-parts/mobile-call-bar.php, printed from footer.php
 */

/* A. Service chooser ------------------------------------------------------ */

/*
 * The section can sit inside narrow page content (820px). It breaks out to the full
 * site container width (1180px minus 24px gutters), and the pale green band runs edge
 * to edge without causing horizontal scrolling: box-shadow plus clip-path paint the band,
 * and the 48px of slack in the width absorbs a desktop scrollbar.
 */
.sd-paths {
	--sd-paths-w: min(calc(var(--container) - 48px), calc(100vw - 48px));
	position: relative;
	width: var(--sd-paths-w);
	margin: 56px calc(50% - var(--sd-paths-w) / 2);
	padding: 56px 0 52px;
	background: var(--mint);
	box-shadow: 0 0 0 100vmax var(--mint);
	clip-path: inset(0 -100vmax);
}

.sd-paths__inner {
	padding: 0;
}

.sd-paths .sd-paths__heading {
	margin-bottom: 36px;
}

.sd-paths .sd-paths__h2 {
	margin: 0;
	font-size: clamp(2rem, 4.4vw, 2.875rem);
	text-wrap: balance;
}

.sd-paths .sd-paths__lead {
	max-width: 34em;
	margin: 14px auto 0;
	font-size: 1.0625rem;
}

.sd-paths .sd-paths__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-paths .sd-paths__item {
	margin: 0;
}

/* The whole card is one link. */
.sd-paths .sd-paths__card {
	display: flex;
	gap: 18px;
	align-items: stretch;
	height: 100%;
	padding: 12px 18px 12px 12px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 18px;
	color: var(--muted);
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(19, 41, 75, 0.04);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
}

.sd-paths .sd-paths__card:hover {
	border-color: var(--mint-deep);
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

.sd-paths .sd-paths__card:focus-visible {
	outline: var(--focus);
	outline-offset: 4px;
	border-radius: 18px;
}

/* Photo: a small arched (tombstone) frame on phones, a soft arch on larger screens. */
.sd-paths__media {
	position: relative;
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-self: flex-start;
	width: 100px;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--mint-deep);
	border-radius: var(--sd-radius-media-sm);
}

.sd-paths__half {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.sd-paths .sd-paths__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sd-paths .sd-paths__card:hover .sd-paths__img {
	transform: scale(1.03);
}

.sd-paths__tag {
	position: absolute;
	left: 6px;
	bottom: 5px;
	padding: 2px 6px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 999px;
	color: var(--navy);
	font-size: 0.5625rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sd-paths__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: 4px 0 2px;
}

.sd-paths .sd-paths__eyebrow {
	margin: 0 0 6px;
	color: var(--gold-text);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
}

.sd-paths .sd-paths__title {
	margin: 0 0 6px;
	color: var(--ink);
	font-size: 1.5rem;
	line-height: 1.1;
}

.sd-paths .sd-paths__text {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.sd-paths__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--navy);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.sd-paths__arrow {
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sd-paths .sd-paths__card:hover .sd-paths__arrow,
.sd-paths .sd-paths__card:focus-visible .sd-paths__arrow {
	transform: translateX(4px);
}

/* "Or start with your concern:" links row under the cards. */
.sd-paths__concerns {
	margin-top: 28px;
	text-align: center;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.sd-paths .sd-paths__concerns-label {
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
}

.sd-paths .sd-paths__concerns-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-paths .sd-paths__concerns-list li {
	margin: 0;
}

.sd-paths .sd-paths__concerns-list li + li::before {
	content: "\00B7";
	margin: 0 10px;
	color: var(--muted);
}

.sd-paths .sd-paths__concerns-list a {
	color: var(--navy);
	text-decoration: underline;
	text-decoration-color: var(--mint-deep);
	text-underline-offset: 3px;
}

.sd-paths .sd-paths__concerns-list a:hover {
	text-decoration-color: currentColor;
}

.sd-paths__footer {
	margin-top: 36px;
	text-align: center;
}

.sd-paths .sd-paths__nudge {
	margin: 0;
	color: var(--ink);
	font-family: var(--font-serif);
	font-size: 1.375rem;
	font-style: italic;
	line-height: 1.35;
}

.sd-paths .sd-paths__actions {
	margin: 20px 0 0;
}

@media (max-width: 599.98px) {
	.sd-paths__actions .sd-btn {
		width: 100%;
	}
}

/* Tablet: two columns of tall cards with a photo on top. */
@media (min-width: 600px) {
	.sd-paths {
		margin-top: 72px;
		margin-bottom: 72px;
		padding: 72px 0 64px;
	}

	.sd-paths .sd-paths__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}

	.sd-paths .sd-paths__card {
		flex-direction: column;
		gap: 0;
		padding: 12px 12px 24px;
	}

	.sd-paths__media {
		flex-direction: row;
		align-self: stretch;
		width: auto;
		aspect-ratio: 3 / 2;
		/* Rounded rectangle on the shared media radius. */
		border-radius: var(--sd-radius-media);
	}

	.sd-paths__tag {
		left: 10px;
		bottom: 10px;
		padding: 3px 9px;
		font-size: 0.625rem;
	}

	.sd-paths__body {
		padding: 22px 10px 0;
	}

	.sd-paths .sd-paths__title {
		font-size: 1.625rem;
		text-wrap: balance;
	}
}

/* Desktop: three columns. */
@media (min-width: 1024px) {
	.sd-paths {
		padding: 96px 0 84px;
	}

	.sd-paths .sd-paths__heading {
		margin-bottom: 52px;
	}

	.sd-paths .sd-paths__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 28px;
	}

	.sd-paths .sd-paths__title {
		font-size: 1.5625rem;
	}

	.sd-paths__footer {
		margin-top: 52px;
	}
}

/* B. Mobile sticky call bar ----------------------------------------------- */
.sd-callbar {
	display: none;
}

@media (max-width: 767.98px) {
	.sd-callbar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 50;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
		background: var(--navy);
		border-top: 1px solid rgba(217, 189, 126, 0.35);
		box-shadow: 0 -10px 28px -16px rgba(13, 31, 58, 0.55);
	}

	.sd-callbar__btn {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 44px;
		padding: 0 12px;
		border: 1.5px solid transparent;
		border-radius: 999px;
		font-size: 0.8125rem;
		font-weight: 600;
		letter-spacing: 0.12em;
		line-height: 1;
		text-decoration: none;
		text-transform: uppercase;
		transition: background-color 0.2s, color 0.2s, border-color 0.2s;
	}

	.sd-callbar__btn .sd-icon {
		width: 18px;
		height: 18px;
		flex: none;
	}

	.sd-callbar__btn--call {
		background: var(--gold-soft);
		border-color: var(--gold-soft);
		color: var(--navy-deep);
	}

	.sd-callbar__btn--call:hover {
		background: var(--white);
		border-color: var(--white);
		color: var(--navy-deep);
	}

	.sd-callbar__btn--book {
		background: transparent;
		border-color: rgba(255, 255, 255, 0.85);
		color: var(--white);
	}

	.sd-callbar__btn--book:hover {
		background: var(--white);
		color: var(--navy);
	}

	.sd-callbar a:focus-visible {
		outline-color: #ffd98a;
		outline-offset: 2px;
		border-radius: 999px;
	}

	/* Keep the bar from covering the end of the footer. */
	body.sd-has-callbar {
		padding-bottom: calc(61px + env(safe-area-inset-bottom, 0px));
	}
}

@media print {
	.sd-callbar {
		display: none !important;
	}
}
