/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/






/* ------------------------------------------------------------------
   Web design review fixes
   ------------------------------------------------------------------ */

/* Visible keyboard focus (only for keyboard users, not on mouse click).
   !important is deliberate: Salient removes the outline with more specific
   selectors (.sf-menu:not(.buttons) a:focus on the main menu, input:focus,
   WPBakery tabs), which would otherwise hide the focus ring.
   Brand red (#df2816, 4.7:1 on white). The white box-shadow fills the 2px gap
   between the element and the ring, so the ring stays visible on red buttons
   and red sections. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #df2816 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px #fff !important;
}

/* Salient header buttons ("Book an appointment") paint the pill on a::before,
   which is taller than the link and hides the top and bottom of the outline.
   Ring the pill instead. The transparent outline still shows in Windows
   high-contrast mode, where box-shadows are dropped. */
#header-outer li[class*="button_"] > a:focus-visible {
	outline-color: transparent !important;
	box-shadow: none !important;
}
#header-outer li[class*="button_"] > a:focus-visible::before {
	box-shadow: 0 0 0 2px #fff, 0 0 0 5px #df2816 !important;
}

/* Faster taps: no double-tap-zoom delay on controls. */
a,
button,
input[type="submit"],
input[type="button"],
label,
summary {
	touch-action: manipulation;
}

/* Balanced headings avoid single-word last lines. */
h1,
h2,
h3 {
	text-wrap: balance;
}

/* Respect users who ask for less motion (also stops background hero video). */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
	.video-texture,
	.nectar-video-wrap video,
	.swiper-slide video {
		display: none !important;
	}
}

/* ------------------------------------------------------------------
   Call / book bar (markup: inc/cta-bar.php)
   Phones and tablets only: below 1000px Salient's header scrolls away.
   ------------------------------------------------------------------ */
.ums-cta-bar {
	display: none;
}

@media (max-width: 999px) {
	.ums-cta-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 9990; /* under Salient's off-canvas menu and lightboxes */
		display: flex;
		gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
	}

	.ums-cta-bar a {
		display: flex;
		flex: 1 1 0;
		gap: 8px;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		padding: 0 12px;
		border-radius: 999px;
		font-family: Montserrat, sans-serif;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.2;
		text-decoration: none;
		white-space: nowrap;
	}

	.ums-cta-bar .ums-cta-bar__call {
		background: #df2816;
		color: #fff;
	}

	/* Book is brand blue (#0027cc, 9.7:1 with white), Call stays red. */
	.ums-cta-bar .ums-cta-bar__book {
		background: #0027cc;
		color: #fff;
	}

	.ums-cta-bar svg {
		flex: none;
	}

	/* Keep the end of the page, and other bottom-corner widgets, clear of the bar. */
	body.ums-has-cta-bar {
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}

	body.ums-has-cta-bar .grecaptcha-badge,
	body.ums-has-cta-bar #to-top,
	body.ums-has-cta-bar .ums-staging-flag {
		bottom: calc(76px + env(safe-area-inset-bottom)) !important;
	}
}

/* Very small phones (under 360px, e.g. the first iPhone SE): drop the icons and
   tighten the spacing so both buttons fit without the page scrolling sideways. */
@media (max-width: 359px) {
	.ums-cta-bar {
		padding-left: 8px;
		padding-right: 8px;
		gap: 6px;
	}

	.ums-cta-bar a {
		min-width: 0;
		padding: 0 8px;
		font-size: 14px;
	}

	.ums-cta-bar svg {
		display: none;
	}
}

@media print {
	.ums-cta-bar {
		display: none !important;
	}
}
