
/* ============================================
   SWEET JAMES, PPC ENHANCEMENT STYLES
   Loaded after components.css. No dependencies.
   ============================================ */

/* ---------------- MID-PAGE CALM CTA ---------------- */
.sj-midcta {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 60;
	width: 320px;
	background: var(--sj-white);
	color: var(--sj-ink);
	border: 1px solid var(--sj-line);
	border-radius: var(--sj-r-xl);
	box-shadow: var(--sj-shadow-lg);
	padding: 20px 22px 22px;
	transform: translateY(140%);
	opacity: 0;
	pointer-events: none;
	transition: transform 480ms cubic-bezier(.16, 1, .3, 1), opacity 320ms ease-out;
}

.sj-midcta.is-in {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.sj-midcta__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	color: var(--sj-muted);
	display: grid;
	place-items: center;
	transition: background var(--sj-dur), color var(--sj-dur);
}

.sj-midcta__close:hover {
	background: var(--sj-paper);
	color: var(--sj-ink);
}

.sj-midcta__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.sj-midcta__pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
	animation: sj-pulse 1.8s infinite;
}

@keyframes sj-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
	}
	
	70% {
		box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
	}
	
	100% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}

.sj-midcta__title {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: -.01em;
}

.sj-midcta__sub {
	font-size: 13px;
	color: var(--sj-ink-soft);
	line-height: 1.5;
	margin: 0 0 14px;
}

.sj-midcta__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.sj-midcta__row .sj-btn {
	min-width: 0;
	padding: 0 12px;
}

@media (max-width: 880px) {
	.sj-midcta {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sj-midcta {
		transition: opacity 200ms ease-out;
		transform: none;
	}
}

/* ---------------- CASE-WORTH CALCULATOR ---------------- */
.sj-calc {
	background: var(--sj-white);
	border: 1px solid var(--sj-line);
	border-radius: var(--sj-r-2xl);
	box-shadow: var(--sj-shadow-md, var(--sj-shadow));
	padding: 40px 44px 36px;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 48px;
	align-items: start;
}

.sj-calc__head {
	max-width: 460px;
}

.sj-calc__title {
	font-family: var(--sj-font-display);
	font-weight: 800;
	letter-spacing: -.035em;
	font-size: clamp(28px, 3.4vw, 44px);
	line-height: 1.02;
	margin: 14px 0 14px;
	color: var(--sj-ink);
}

.sj-calc__title em {
	font-style: italic;
	font-weight: 600;
	color: var(--sj-navy);
}

.sj-calc__sub {
	font-size: 15px;
	color: var(--sj-ink-soft);
	line-height: 1.6;
	margin: 0;
}

.sj-calc__grid {
	display: grid;
	gap: 24px;
}

.sj-calc__row {
	display: grid;
	gap: 10px;
}

.sj-calc__row--toggle {
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 16px;
	padding-top: 4px;
}

.sj-calc__lbl {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--sj-ink);
	letter-spacing: -.005em;
}

.sj-calc__val {
	font-family: var(--sj-font-display);
	font-weight: 700;
	letter-spacing: -.02em;
	font-size: 18px;
	color: var(--sj-navy);
}

.sj-calc__scale {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	color: var(--sj-muted);
	font-family: var(--sj-font-mono);
	letter-spacing: .04em;
}

.sj-calc input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	background: var(--sj-paper);
	border: 1px solid var(--sj-line);
	border-radius: 999px;
	outline: none;
	cursor: pointer;
}

.sj-calc input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	background: var(--sj-navy);
	border: 3px solid var(--sj-gold);
	border-radius: 50%;
	cursor: grab;
	box-shadow: 0 2px 6px rgba(10, 14, 44, .18);
	transition: transform 120ms ease-out;
}

.sj-calc input[type="range"]::-webkit-slider-thumb:active {
	transform: scale(1.12);
	cursor: grabbing;
}

.sj-calc input[type="range"]::-moz-range-thumb {
	width: 22px;
	height: 22px;
	background: var(--sj-navy);
	border: 3px solid var(--sj-gold);
	border-radius: 50%;
	cursor: grab;
}

.sj-calc input[type="range"]:focus-visible {
	outline: 3px solid var(--sj-gold);
	outline-offset: 2px;
}

.sj-calc__pillgroup {
	display: inline-flex;
	gap: 4px;
	background: var(--sj-paper);
	border: 1px solid var(--sj-line);
	border-radius: 999px;
	padding: 4px;
}

.sj-calc__pill {
	background: transparent;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 600;
	font-size: 13px;
	padding: 8px 18px;
	cursor: pointer;
	color: var(--sj-ink-soft);
	letter-spacing: -.005em;
	transition: background var(--sj-dur), color var(--sj-dur);
}

.sj-calc__pill.is-on {
	background: var(--sj-navy);
	color: var(--sj-gold);
}

.sj-calc__out {
	background: var(--sj-navy);
	color: #fff;
	border-radius: var(--sj-r-xl);
	padding: 28px 28px 26px;
	display: grid;
	gap: 14px;
	grid-column: 2;
	grid-row: 1/span 2;
	align-self: stretch;
	position: relative;
	overflow: hidden;
}

.sj-calc__out::before {
	content: "";
	position: absolute;
	pointer-events: none;
	top: -40px;
	right: -40px;
	width: 200px;
	height: 200px;
	background: radial-gradient(closest-side, rgba(255, 255, 0, .12), transparent 70%);
}

.sj-calc__outhead {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.sj-calc__outlbl {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .7);
}

.sj-calc__outbadge {
	font-size: 10px;
	font-weight: 500;
	padding: 4px 8px;
	background: rgba(255, 255, 255, .08);
	border-radius: 999px;
	color: rgba(255, 255, 255, .7);
	letter-spacing: .02em;
}

.sj-calc__outrange {
	font-family: var(--sj-font-display);
	font-weight: 800;
	letter-spacing: -.035em;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1;
	color: var(--sj-gold);
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	position: relative;
	font-variant-numeric: tabular-nums;
}

.sj-calc__outsep {
	color: rgba(255, 255, 255, .4);
	font-weight: 600;
}

.sj-calc__disc {
	grid-column: 1/-1;
	font-size: 11px;
	color: var(--sj-muted);
	line-height: 1.55;
	margin: 0;
	padding-top: 8px;
	border-top: 1px dashed var(--sj-line);
}

@media (max-width: 860px) {
	.sj-calc {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 28px 24px 24px;
	}
	
	.sj-calc__out {
		grid-column: 1;
		grid-row: auto;
	}
	
	.sj-calc__row--toggle {
		grid-template-columns: 1fr;
		align-items: stretch;
	}
}

/* ---------------- ATTORNEY ATTRIBUTION MINI BAND ---------------- */
.sj-byline {
	background: var(--sj-white);
	border: 1px solid var(--sj-line);
	border-radius: var(--sj-r-xl);
	padding: 22px 26px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 22px;
	align-items: center;
	box-shadow: var(--sj-shadow-sm);
}

.sj-byline__avatars {
	display: flex;
}

.sj-byline__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--sj-navy);
	border: 2px solid var(--sj-white);
	margin-left: -12px;
	overflow: hidden;
	display: grid;
	place-items: center;
	color: var(--sj-gold);
	font-family: var(--sj-font-display);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: -.02em;
}

.sj-byline__avatar:first-child {
	margin-left: 0;
}

.sj-byline__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sj-byline__text {
	font-size: 13px;
	color: var(--sj-ink-soft);
	line-height: 1.55;
}

.sj-byline__text b {
	color: var(--sj-ink);
	font-weight: 600;
}

.sj-byline__text .creds {
	display: block;
	font-family: var(--sj-font-mono);
	font-size: 11px;
	color: var(--sj-muted);
	letter-spacing: .04em;
	margin-top: 2px;
}

.sj-byline__cta {
	font-size: 13px;
	font-weight: 600;
	color: var(--sj-navy);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 1px solid var(--sj-gold);
	padding-bottom: 1px;
}

.sj-byline__cta:hover {
	color: var(--sj-ink);
}

@media (max-width: 640px) {
	.sj-byline {
		grid-template-columns: 1fr;
		gap: 14px;
		text-align: center;
		padding: 20px;
	}
	
	.sj-byline__avatars {
		justify-content: center;
	}
	
	.sj-byline__cta {
		justify-self: center;
	}
}

/* ---------------- SHIPPED PILL (used by audit doc) ---------------- */
.sj-shipped {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #dcfce7;
	color: #14532d;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 999px;
	font-family: var(--sj-font-mono);
}

.sj-shipped::before {
	content: "";
	width: 6px;
	height: 6px;
	background: #16a34a;
	border-radius: 50%;
}

/* ---------------- STATIC MAP TILE (locations) ---------------- */
.sj-map {
	position: relative;
	border-radius: var(--sj-r-2xl);
	overflow: hidden;
	border: 1px solid var(--sj-line);
	box-shadow: var(--sj-shadow-sm);
	background: linear-gradient(135deg, #e8eef7 0%, #f5f0e3 100%);
	aspect-ratio: 4/3;
	min-height: 280px;
	margin: 0 auto;
	max-width: 100%;
}

@media (max-width: 880px) {
	.sj-map {
		min-height: 240px;
		aspect-ratio: 4/3;
	}
}

.sj-map--inner {
	display: none;
}

.sj-map__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.sj-map__pin {
	position: absolute;
	top: 48%;
	left: 52%;
	transform: translate(-50%, -100%);
	width: 44px;
	height: 44px;
	filter: drop-shadow(0 6px 16px rgba(10, 14, 44, .25));
	pointer-events: none;
	animation: sj-pin-drop 700ms cubic-bezier(.16, 1, .3, 1) 200ms both;
}

@keyframes sj-pin-drop {
	from {
		transform: translate(-50%, -160%);
		opacity: 0;
	}
	
	to {
		transform: translate(-50%, -100%);
		opacity: 1;
	}
}

.sj-map__chip {
	position: absolute;
	bottom: 18px;
	left: 18px;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	border-radius: var(--sj-r);
	padding: 12px 16px;
	display: grid;
	gap: 2px;
	box-shadow: var(--sj-shadow);
	font-size: 13px;
	border: 1px solid var(--sj-line);
	max-width: 70%;
}

.sj-map__chip-name {
	font-weight: 700;
	color: var(--sj-ink);
	letter-spacing: -.01em;
}

.sj-map__chip-addr {
	color: var(--sj-muted);
	font-size: 12px;
	line-height: 1.45;
}

.sj-map__chip-dirs {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-weight: 600;
	color: var(--sj-navy);
	font-size: 12px;
	text-decoration: none;
	border-bottom: 1px solid var(--sj-gold);
	align-self: flex-start;
	padding-bottom: 1px;
}

/* ---------------- GOOGLE REVIEWS BAND ---------------- */
.sj-greviews {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}

.sj-greview {
	background: var(--sj-white);
	border: 1px solid var(--sj-line);
	border-radius: var(--sj-r-xl);
	padding: 24px 26px;
	display: grid;
	gap: 12px;
	box-shadow: var(--sj-shadow-sm);
	transition: box-shadow var(--sj-dur-med) var(--sj-ease), transform var(--sj-dur);
}

.sj-greview:hover {
	box-shadow: var(--sj-shadow);
	transform: translateY(-2px);
}

.sj-greview__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sj-greview__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sj-navy);
	color: var(--sj-gold);
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 15px;
	flex: 0 0 40px;
}

.sj-greview__author {
	font-weight: 600;
	font-size: 14px;
	color: var(--sj-ink);
	letter-spacing: -.005em;
}

.sj-greview__when {
	font-size: 12px;
	color: var(--sj-muted);
	margin-top: 2px;
}

.sj-greview__stars {
	font-size: 12px;
	color: #f5b400;
	letter-spacing: 2px;
}

.sj-greview__body {
	font-size: 14px;
	color: var(--sj-ink-soft);
	line-height: 1.6;
}

.sj-greview__body b {
	color: var(--sj-ink);
	font-weight: 600;
}

.sj-greview__tag {
	font-size: 11px;
	color: var(--sj-muted);
	font-family: var(--sj-font-mono);
	letter-spacing: .04em;
	text-transform: uppercase;
	padding-top: 10px;
	border-top: 1px dashed var(--sj-line);
	display: flex;
	justify-content: space-between;
}

.sj-greview__tag .g {
	color: #4285f4;
	font-weight: 700;
}
