/* ==========================================================================
   WINMEDIC — Sales chrome (header + footer + sticky CTA)
   Shared by templates using header-sales.php / footer-sales.php (sales-page, dental-lp).
   ========================================================================== */

/* ---------- TOP BAR ---------- */
.sp-topbar {
	background: #f8fafc;
	border-bottom: 1px solid #eef2f6;
	padding: 0.4rem 0;
	font-size: 0.75rem;
	color: var(--wm-text-muted);
}

.sp-topbar .container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
}

.sp-topbar__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--wm-text-muted);
	font-weight: 500;
}

.sp-topbar__phone:hover { color: var(--wm-primary); }

.sp-topbar__icon { width: 12px; height: 12px; }

.sp-topbar__hours {
	display: none;
	align-items: center;
	gap: 0.375rem;
}

@media (min-width: 30em) {
	.sp-topbar__hours { display: inline-flex; }
}

/* ---------- HEADER ---------- */
.sp-header {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
	position: sticky;
	top: 0;
	z-index: 100;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sp-header.is-scrolled {
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.sp-header.is-hidden {
	transform: translateY(-100%);
}

.sp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
	gap: 1rem;
}

.sp-header .site-logo img { height: 56px; }

.sp-nav { display: none; }

@media (min-width: 64em) {
	.sp-nav {
		display: flex;
		align-items: center;
		gap: 2rem;
	}
}

.sp-nav a {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wm-text-light);
	transition: color 0.2s ease;
	text-decoration: none;
}

.sp-nav a:hover,
.sp-nav a.current { color: var(--wm-text); }

.sp-header__actions { display: none; }

@media (min-width: 64em) {
	.sp-header__actions {
		display: flex;
		align-items: center;
		gap: 1rem;
	}
}

.sp-header__link {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wm-text-light);
	text-decoration: none;
}

.sp-header__link:hover { color: var(--wm-primary); }

.btn--sm {
	padding: 0.5rem 1.25rem;
	font-size: 0.8125rem;
	border-radius: 999px;
}

.btn--block { width: 100%; }

/* ---------- BURGER + MOBILE DRAWER ---------- */
.sp-burger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: none;
	border: none;
	padding: 10px;
	cursor: pointer;
}

@media (min-width: 64em) { .sp-burger { display: none; } }

.sp-burger span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--wm-text);
	border-radius: 2px;
	transition: all 0.3s ease;
	transform-origin: center;
}

.sp-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sp-burger.is-active span:nth-child(2) { opacity: 0; }
.sp-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sp-drawer {
	position: fixed;
	top: 0;
	right: -100%;
	width: 85%;
	max-width: 320px;
	height: 100%;
	background: #fff;
	z-index: 200;
	padding: 5rem 1.5rem 2rem;
	transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
	gap: 0;
	overflow-y: auto;
}

.sp-drawer.is-open { right: 0; }

.sp-drawer a:not(.btn) {
	display: block;
	padding: 1rem 0;
	font-size: 1.0625rem;
	font-weight: 500;
	color: var(--wm-text);
	border-bottom: 1px solid var(--wm-border);
	text-decoration: none;
}

.sp-drawer__cta { margin-top: auto; padding-top: 1.5rem; }

.sp-drawer__cta .btn {
	display: inline-flex;
	width: 100%;
	padding: 0.95rem 1.5rem;
	color: #fff;
	background: var(--wm-primary, #0c1a4c);
	border: none;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 700;
	justify-content: center;
}

.sp-drawer__cta .btn:hover {
	background: var(--wm-primary-dark, #070f2e);
	color: #fff;
}

.sp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 199;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.sp-overlay.is-active {
	opacity: 1;
	pointer-events: auto;
}

@media (min-width: 64em) {
	.sp-drawer,
	.sp-overlay { display: none !important; }
}

/* ---------- STICKY BOTTOM CTA ---------- */
.sp-sticky-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 90;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-top: 1px solid var(--wm-border);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
	padding: 0.75rem 0;
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-sticky-cta.is-visible {
	transform: translateY(0);
}

.sp-sticky-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.sp-sticky-cta__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sp-sticky-cta__text strong {
	font-size: 0.8125rem;
	color: var(--wm-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sp-sticky-cta__text span {
	font-size: 0.6875rem;
	color: var(--wm-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 48em) {
	.sp-sticky-cta__text strong { font-size: 0.9375rem; }
	.sp-sticky-cta__text span { font-size: 0.75rem; }
}

.sp-sticky-cta__btn { border-radius: 999px; }

@media (max-width: 47.99em) {
	.sp-sticky-cta__btn {
		flex-shrink: 0;
		padding: 0.625rem 1rem;
		font-size: 0.75rem;
	}
}

.sp-sticky-cta.is-at-cta { transform: translateY(100%); }

/* ---------- FOOTER ---------- */
.sp-footer {
	background: #0f172a;
	color: rgba(255, 255, 255, 0.6);
	padding: 3rem 0 1.5rem;
}

.sp-footer__top {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

@media (min-width: 48em) {
	.sp-footer__top { grid-template-columns: 2fr 1fr 1fr; }
}

.sp-footer__brand p {
	font-size: 0.875rem;
	line-height: 1.6;
	margin-top: 0.75rem;
}

.sp-footer__wordmark {
	display: inline-block;
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: 0.05em;
	color: #ffffff;
	text-decoration: none;
}

.sp-footer__wordmark:hover { opacity: 0.85; }

.sp-footer__col h4 {
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	margin-bottom: 0.75rem;
}

.sp-footer__col a,
.sp-footer__col span {
	display: block;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 0.5rem;
	text-decoration: none;
}

.sp-footer__col a:hover { color: #fff; }

.sp-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 1.25rem;
	text-align: center;
	font-size: 0.75rem;
}

/* Generic primary button (shared) */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.5rem;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
	background: var(--wm-primary, #0c1a4c);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
	box-shadow: 0 6px 16px rgba(12, 26, 76, 0.18);
}

.btn:hover {
	background: var(--wm-primary-dark, #070f2e);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(12, 26, 76, 0.25);
}

.btn--primary { /* default appearance */ }

.btn--secondary {
	background: #fff;
	color: var(--wm-primary, #0c1a4c);
	border: 1px solid var(--wm-border, #e2e8f0);
	box-shadow: none;
}

.btn--secondary:hover {
	background: #f7f9fc;
	color: var(--wm-primary-dark, #070f2e);
	box-shadow: none;
}

.btn--large {
	padding: 1rem 1.85rem;
	font-size: 1rem;
}

.btn__icon { width: 18px; height: 18px; }

/* Skip link */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--wm-primary, #0c1a4c);
	color: #fff;
	padding: 0.5rem 1rem;
	z-index: 10000;
	text-decoration: none;
}

.skip-link:focus {
	top: 0;
}
