/* Consultation CTA: desktop header button + mobile bottom action bar.
   Markup: inc/consultation-cta.php.
   Breakpoint: the header layout shows its desktop row from 1280px up and its
   mobile row below that (ThemeREX Addons "hide on tablet / mobile"). */

/* Buttons (shared by the desktop header and the mobile bar)
------------------------------------------------------------ */
.ova_header_cta,
.ova_mobile_cta {
	--ova-cta-primary-bg: #7d6a3e;
	--ova-cta-primary-bg-hover: #6b5a33;
	--ova-cta-primary-content: #fff;
	--ova-cta-secondary-border: #9c854f;
	--ova-cta-secondary-text: #090116;
	--ova-cta-secondary-bg-hover: rgba(156, 133, 79, 0.12);
	--ova-cta-radius: 3px;
	--ova-cta-height: 48px;
}

.ova_cta_button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	height: var(--ova-cta-height);
	padding: 0 18px 0 16px;
	border: 0;
	border-radius: var(--ova-cta-radius);
	font-size: 17px;
	font-weight: 400;
	line-height: 19px;
	letter-spacing: 1px;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.ova_cta_button.ova_cta_primary,
.ova_cta_button.ova_cta_primary:hover,
.ova_cta_button.ova_cta_primary:focus {
	background-color: var(--ova-cta-primary-bg);
	color: var(--ova-cta-primary-content);
}

.ova_cta_button.ova_cta_primary:hover,
.ova_cta_button.ova_cta_primary:focus-visible {
	background-color: var(--ova-cta-primary-bg-hover);
}

.ova_cta_button.ova_cta_secondary {
	border: 1px solid var(--ova-cta-secondary-border);
	background-color: transparent;
}

.ova_cta_button.ova_cta_secondary:hover,
.ova_cta_button.ova_cta_secondary:focus-visible {
	background-color: var(--ova-cta-secondary-bg-hover);
}

.ova_cta_button:focus-visible {
	outline: 2px solid var(--ova-cta-primary-bg);
	outline-offset: 2px;
}

.ova_cta_icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	background: center / 22px 22px no-repeat;
}

.ova_cta_icon_video {
	background-image: url(../images/cta/icon-video.svg);
}

.ova_cta_icon_phone {
	background-image: url(../images/cta/icon-phone.svg);
}

/* Desktop header
------------------------------------------------------------ */
.ova_header_cta {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* The CTA label takes two lines here (one in the mobile bar), aligned left
   (the header column centres its text). */
.ova_header_cta .ova_cta_label {
	text-align: left;
}

.ova_header_cta .ova_cta_label_line {
	display: block;
}

.ova_cta_number {
	color: var(--ova-cta-secondary-text);
	font-size: 18px;
	font-weight: 500;
	line-height: 22px;
	letter-spacing: 0;
}

@media (min-width: 1280px) {
	/* White bar with a soft shadow in every state (also where the theme makes
	   the header transparent over the page, and when the row is pinned). */
	.top_panel .elementor-section.elementor-element.sc_layouts_row.ova_header_row.ova_header_row[class*="scheme_"] {
		padding: 0 40px;
		background-color: #fff;
		box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12);
	}

	/* Sticky: keep the row (and its CTA) in view while scrolling down too. The
	   ThemeREX Addons option "Hide fixed rows on scroll down" slides fixed rows
	   out of the viewport until the visitor scrolls back up. */
	body.hide_fixed_rows .top_panel .ova_header_row.sc_layouts_row_fixed_on {
		animation: none;
	}

	.top_panel .ova_header_row > .elementor-container {
		flex-wrap: nowrap;
		align-items: center;
		min-height: 80px;
	}

	/* Logo, then the menu taking the free space, then the CTAs. */
	.top_panel .ova_header_row .elementor-column.elementor-element.ova_header_logo,
	.top_panel .ova_header_row .elementor-column.elementor-element.ova_header_actions {
		flex: 0 0 auto;
		width: auto;
	}

	.top_panel .ova_header_row .elementor-column.elementor-element.ova_header_nav {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}

	.top_panel .ova_header_row .elementor-column.elementor-element.ova_header_logo > .elementor-element-populated {
		margin: 0;
	}

	.top_panel .ova_header_row .ova_header_logo .logo_image {
		width: auto;
		max-height: 48px;
	}

	/* 40px between the logo and the first menu label, 18px between labels. */
	.top_panel .ova_header_row .elementor-column.elementor-element.ova_header_nav > .elementor-widget-wrap {
		justify-content: flex-start;
		padding-left: 31px;
		text-align: left;
	}

	.top_panel .ova_header_row .ova_header_nav .sc_layouts_item {
		margin: 0;
	}

	.top_panel .ova_header_row .sc_layouts_menu_dir_horizontal .sc_layouts_menu_nav > li.menu-item > a {
		padding-right: 9px;
		padding-left: 9px;
	}

	.top_panel .ova_header_row .wpml-ls-menu-item .wpml-ls-flag + span {
		margin-left: 4px;
	}

	.top_panel .ova_header_row .ova_header_actions > .elementor-widget-wrap {
		padding-left: 19px;
	}

	.top_panel .ova_header_row .ova_header_actions .sc_layouts_item {
		margin: 0;
	}
}

/* Narrow desktops: tighten the row so the menu and the CTAs still fit. */
@media (min-width: 1280px) and (max-width: 1439px) {
	.top_panel .elementor-section.elementor-element.sc_layouts_row.ova_header_row.ova_header_row[class*="scheme_"] {
		padding: 0 24px;
	}

	.top_panel .ova_header_row .ova_header_logo .logo_image {
		max-height: 40px;
	}

	.top_panel .ova_header_row .elementor-column.elementor-element.ova_header_nav > .elementor-widget-wrap {
		padding-left: 18px;
	}

	.top_panel .ova_header_row .sc_layouts_menu_dir_horizontal .sc_layouts_menu_nav > li.menu-item > a {
		padding-right: 6px;
		padding-left: 6px;
	}

	.top_panel .ova_header_row .ova_header_actions > .elementor-widget-wrap {
		padding-left: 10px;
	}
}

/* Joinchat (WhatsApp) button, bottom right
   The plugin places it itself; here it only makes room: the theme's
   scroll-to-top button is stacked above it and, below the desktop breakpoint,
   both sit above the bottom action bar.
   The scroll-to-top button is 2.5em wide and the theme moves it sideways at its
   own breakpoints, so its `right` is set from the centre of the WhatsApp
   button (plugin offset + 8px + half its size) minus half its own width.
   The plugin offset (--sep) is fixed here because the plugin shrinks it by
   itself on short landscape viewports, which would break that alignment.
------------------------------------------------------------ */
.joinchat.joinchat {
	--sep: 20px;
}

@media (min-width: 1280px) {
	.trx_addons_scroll_to_top.trx_addons_scroll_to_top {
		right: calc(58px - 1.25em);
	}

	.trx_addons_scroll_to_top.trx_addons_scroll_to_top.show {
		bottom: 100px;
	}
}

/* Mobile / tablet bottom action bar
------------------------------------------------------------ */
.ova_mobile_cta {
	display: none;
}

@media (max-width: 1279px) {
	.ova_mobile_cta {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 8000;
		display: flex;
		gap: 8px;
		box-sizing: border-box;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
		background-color: #fff;
		box-shadow: 0 -2px 12px 0 rgba(0, 0, 0, 0.1);
	}

	.ova_mobile_cta .ova_cta_primary {
		flex: 1 1 0;
		justify-content: center;
		min-width: 0;
		padding: 0 12px;
		font-size: 16px;
		line-height: 20px;
	}

	.ova_mobile_cta .ova_cta_icon_only {
		flex: 0 0 var(--ova-cta-height);
		justify-content: center;
		width: var(--ova-cta-height);
		padding: 0;
	}

	/* Keep the end of the page and the other fixed controls clear of the bar. */
	.body_wrap {
		padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
	}

	.joinchat {
		--s: 48px;
		--bottom: calc(68px + env(safe-area-inset-bottom, 0px));
	}

	.trx_addons_scroll_to_top.trx_addons_scroll_to_top {
		right: calc(52px - 1.25em);
	}

	.trx_addons_scroll_to_top.trx_addons_scroll_to_top.show {
		bottom: calc(134px + env(safe-area-inset-bottom, 0px));
	}

	.cky-btn-revisit-wrapper {
		bottom: calc(79px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

@media (max-width: 767px) {
	.joinchat.joinchat {
		--sep: 2px;
	}

	.trx_addons_scroll_to_top.trx_addons_scroll_to_top {
		right: calc(34px - 1.25em);
	}
}

/* Tablets: keep the buttons together instead of stretching the CTA edge to edge. */
@media (min-width: 768px) and (max-width: 1279px) {
	.ova_mobile_cta {
		justify-content: center;
	}

	.ova_mobile_cta .ova_cta_primary {
		flex: 0 1 360px;
	}
}

@media (max-width: 359px) {
	.ova_mobile_cta .ova_cta_primary {
		gap: 8px;
		padding: 0 8px;
		font-size: 14px;
		letter-spacing: 0.5px;
	}
}

@media print {
	.ova_mobile_cta {
		display: none;
	}
}
