/*
	Theme Name: Hello Elementor Child
	Description: Victoria Clinic child theme for Hello Elementor. Custom CSS, JS, PHP hooks, and template overrides go here so parent theme updates do not overwrite them.
	Template: hello-elementor
	Version: 1.0.0
	Text Domain: hello-elementor-child
*/

/* Custom CSS goes below. */

/*
 * Header menu (Master Header, post 271, widget 387e03b). From 1200px it fits on one line with its
 * Elementor settings (16px gap). Between the tablet breakpoint and 1200px it would wrap to two lines,
 * so tighten it there. Elementor has no breakpoint for this range.
 */
@media (min-width: 1025px) and (max-width: 1199px) {
	.elementor-271 .elementor-element.elementor-element-387e03b.elementor-widget-nav-menu {
		--e-nav-menu-horizontal-menu-item-margin: 5px;
	}

	.elementor-271 .elementor-element.elementor-element-387e03b .elementor-nav-menu--main .elementor-item {
		font-size: 15px;
	}
}

/*
 * Header contact bar (Master Header, post 271, HTML widget b2d8f41 in section 5dc2bcc). One slim pale
 * bar with the address (Google Maps), phone, email, Urgent Care hours and a red Call 111 pill. Each
 * link has a long label and a short one; on phones the short labels show as four buttons, Call 111
 * first. The links and labels are edited in that widget's HTML.
 */
.vc-topbar {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 42px;
	color: #3b3b3b;
	font-size: 14px;
	line-height: 1.3;
}

.vc-topbar svg {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

html .vc-topbar a.vc-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.vc-topbar a.vc-topbar__item svg,
.vc-topbar__hours svg {
	color: #c63d49;
}

html .vc-topbar a.vc-topbar__item:hover .vc-topbar__long,
html .vc-topbar a.vc-topbar__item:focus-visible .vc-topbar__long {
	text-decoration: underline;
}

.vc-topbar__hours {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: auto;
	color: #555;
	white-space: nowrap;
}

html .vc-topbar a.vc-topbar__111 {
	gap: 8px;
	height: 30px;
	padding: 0 14px;
	border-radius: 999px;
	background: #d7263d;
	color: #fff;
	font-weight: 500;
}

html .vc-topbar a.vc-topbar__111 svg {
	color: #fff;
}

html .vc-topbar a.vc-topbar__111:hover {
	background: #b81e33;
}

html .vc-topbar a.vc-topbar__111:hover .vc-topbar__long {
	text-decoration: none;
}

.vc-topbar__short {
	display: none;
}

/* Below 1200px the 1140px header rows would touch the screen edges, as the tablet padding starts at 1024px. */
@media (min-width: 1025px) and (max-width: 1199px) {
	.elementor-271 .elementor-section.elementor-element.header1,
	.elementor-271 .elementor-section.elementor-element.header2 {
		padding-right: 20px;
		padding-left: 20px;
	}
}

/* Below 1100px the bar has no room for the hours, and the menu needs a smaller font to fit beside the logo. */
@media (max-width: 1099px) {
	.vc-topbar__hours {
		display: none;
	}

	html .vc-topbar a.vc-topbar__111 {
		margin-left: auto;
	}
}

@media (min-width: 1025px) and (max-width: 1099px) {
	.elementor-271 .elementor-element.elementor-element-387e03b .elementor-nav-menu--main .elementor-item {
		font-size: 14px;
	}
}

/* Tablets: shorten the 111 pill so the bar stays on one line. */
@media (max-width: 1024px) {
	.vc-topbar {
		gap: 20px;
	}

	.vc-topbar__111 .vc-topbar__long {
		display: none;
	}

	.vc-topbar__111 .vc-topbar__short {
		display: inline;
	}
}

@media (max-width: 767px) {
	.vc-topbar {
		display: grid;
		grid-template-columns: 1.25fr 1fr 1fr 1fr;
		gap: 6px;
		padding: 8px 10px;
	}

	html .vc-topbar a.vc-topbar__item {
		flex-direction: column;
		justify-content: center;
		gap: 2px;
		height: auto;
		margin: 0;
		padding: 7px 2px 6px;
		border-radius: 10px;
		background: #fff;
		color: #c63d49;
		font-size: 12px;
		font-weight: 500;
		text-align: center;
	}

	html .vc-topbar a.vc-topbar__phone {
		order: -1;
	}

	html .vc-topbar a.vc-topbar__111 {
		order: -2;
		background: #d7263d;
		color: #fff;
	}

	.vc-topbar svg {
		width: 20px;
		height: 20px;
	}

	.vc-topbar__long {
		display: none;
	}

	.vc-topbar__short {
		display: inline;
	}
}

/*
 * Footer "| Privacy Policy" link (Master Footer, post 273, heading 38fc392a). On phones the footer
 * stacks, so the "|" separator (a span in the heading text) would start its own line; hide it there.
 */
@media (max-width: 767px) {
	.vc-footer-sep {
		display: none;
	}
}

/*
 * Homepage hero (page 300, section dbee4aa, CSS class "vc-sky-hero"). The storefront photo fills the
 * width, and the headline and buttons sit in its sky. The section's bottom padding is the photo area
 * and the photo is placed from the bottom, so the roofline lands just under the buttons however the
 * text wraps; sky colour fills any space above the photo. The numbers depend on this photo: it is 3:2
 * (66.67vw tall at full width) and its roof is 36% down it, so its top is 24vw above the roof.
 * A different photo needs new numbers. assets/sky-hero.js adds the opening-hours bar and scroll cue.
 */
.elementor .elementor-section.vc-sky-hero {
	--vc-photo-area: min(32vw, 460px);
	padding-bottom: var(--vc-photo-area) !important;
	background-size: 100% auto !important;
	background-position: left 50% bottom calc(var(--vc-photo-area) - 42.67vw) !important;
}

@media (max-width: 1024px) {
	.elementor .elementor-section.vc-sky-hero {
		--vc-photo-area: 38vw;
	}
}

@media (max-width: 767px) {
	.elementor .elementor-section.vc-sky-hero {
		--vc-photo-area: 40vw;
	}
}

/* Blends the top edge of the photo into the plain sky colour above it. */
.elementor .elementor-section.vc-sky-hero > .elementor-background-overlay {
	background: linear-gradient(to top, rgba(148, 176, 249, 0) calc(var(--vc-photo-area) + 24vw - 90px), #94b0f9 calc(var(--vc-photo-area) + 24vw)) !important;
	opacity: 1 !important;
	mix-blend-mode: normal !important;
}

.vc-sky-hero .elementor-heading-title {
	max-width: 16em;
	margin-inline: auto;
	text-wrap: balance;
}

.vc-sky-hero .elementor-widget-text-editor p {
	margin: 0;
}

.vc-sky-hero .elementor-button {
	text-decoration: none;
}

.vc-sky-hero .elementor-widget-button {
	align-self: center;
}

/*
 * Hero Enrol now button (widget be48d40, CSS class "vc-enrol-cta"). Its colour, size and padding are
 * Elementor settings; this adds the glow ring, the arrow in a white circle and one shine on load.
 */
.vc-sky-hero .vc-enrol-cta .elementor-button {
	position: relative;
	overflow: hidden;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55), 0 14px 28px -10px rgba(170, 20, 40, 0.75);
}

.vc-sky-hero .vc-enrol-cta .elementor-button-content-wrapper {
	align-items: center;
}

.vc-sky-hero .vc-enrol-cta .elementor-button-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
}

.vc-sky-hero .vc-enrol-cta .elementor-button-icon svg {
	width: 18px;
	height: 18px;
	fill: #e23b49;
}

.vc-sky-hero .vc-enrol-cta .elementor-button::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: skewX(-20deg);
	animation: vc-enrol-shine 1.1s ease-out 0.6s 1;
	pointer-events: none;
}

@keyframes vc-enrol-shine {
	to {
		left: 130%;
	}
}

@media (max-width: 767px) {
	.vc-sky-hero .vc-enrol-cta .elementor-button-icon {
		width: 38px;
		height: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vc-sky-hero .vc-enrol-cta .elementor-button::after {
		animation: none;
	}
}

/* "$0 first GP appointment for new patients" under the hero buttons (widget c3e9a52). */
.vc-enrol-note__price {
	margin-right: 4px;
	padding: 1px 9px;
	border-radius: 999px;
	background: #fff;
	color: #e23b49;
}

.vc-hero-status {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 28px;
	padding: 12px max(20px, calc((100% - 1140px) / 2));
	background: rgba(255, 255, 255, 0.92);
	color: #333;
	font-size: 14px;
	line-height: 1.4;
}

.vc-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: 4px;
	color: #1b2540;
	font-weight: 500;
}

.vc-status::before {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #1f9d55;
}

.vc-status.is-closed {
	color: #5f5f5f;
}

.vc-status.is-closed::before {
	background: #a3a3a3;
}

.vc-hero-status__phone {
	margin-left: auto;
	color: #c63d49;
	font-weight: 500;
	text-decoration: none;
}

html button.vc-scroll-cue {
	position: fixed;
	left: 50%;
	z-index: 50;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #c63d49;
	box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.4);
	transform: translateX(-50%);
	cursor: pointer;
	transition: opacity 0.3s ease;
	animation: vc-cue-bob 1.8s ease-in-out 1.2s 3;
}

html button.vc-scroll-cue:hover,
html button.vc-scroll-cue:focus {
	background: #fdeeef;
	color: #c63d49;
}

html button.vc-scroll-cue:focus-visible {
	outline: 2px solid #1b2540;
	outline-offset: 2px;
}

html button.vc-scroll-cue.is-hidden {
	opacity: 0;
	pointer-events: none;
}

@keyframes vc-cue-bob {
	50% {
		transform: translate(-50%, 6px);
	}
}

@media (max-width: 767px) {
	.vc-hero-status {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
		padding: 9px 16px;
		font-size: 13px;
	}

	.vc-hero-status__phone {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html button.vc-scroll-cue {
		animation: none;
	}
}

/*
 * Corner notice. Give an Elementor widget the CSS class "vc-corner-notice" (Advanced > CSS Classes)
 * and assets/corner-notice.js shows it as a closable popup in the bottom-right corner instead of
 * in the page. Used for the homepage call-volume notice.
 */
body:not(.elementor-editor-active) .elementor .vc-corner-notice {
	display: none;
}

.vc-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	width: min(380px, calc(100vw - 48px));
	padding: 18px 52px 18px 20px;
	background: #fff;
	color: #444;
	border-left: 4px solid #ec5863;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	font-size: 15px;
	line-height: 1.5;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.vc-toast.is-visible {
	opacity: 1;
	transform: none;
}

.vc-toast .vc-corner-notice.elementor-widget {
	margin: 0;
}

.vc-toast p {
	margin: 0 0 0.6em;
}

.vc-toast p:last-child {
	margin-bottom: 0;
}

.vc-toast .vc-toast__close {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #555;
	cursor: pointer;
}

.vc-toast .vc-toast__close:hover,
.vc-toast .vc-toast__close:focus-visible {
	background: #fdeeef;
	color: #ec5863;
}

@media (max-width: 767px) {
	.vc-toast {
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
		padding: 14px 48px 14px 16px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vc-toast {
		transform: none;
		transition: none;
	}
}
