/*
 * ARCO SMART — motion & "Liquid Glass" layer.
 * Self-contained: removing the arco-fx enqueue in functions.php restores the previous look.
 */

:root {
	--glass-light: rgba(255, 255, 255, .62);
	--glass-dark: rgba(255, 255, 255, .07);
	--glass-edge: rgba(255, 255, 255, .55);
	--glass-edge-dark: rgba(255, 255, 255, .16);
	--glass-blur: blur(22px) saturate(180%);
	--radius-lg: 28px;
	--radius-md: 20px;
	--ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Glass header (sticky) ---------- */
.whb-header { position: sticky; top: 0; z-index: 400; }
.whb-header .whb-row { background: transparent !important; border-color: rgba(0, 0, 0, .06) !important; }
.whb-header .whb-main-header {
	background: var(--glass-light);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .7), 0 1px 0 rgba(0, 0, 0, .05);
	transition: box-shadow .4s var(--ease-out), background .4s var(--ease-out);
}
.arco-scrolled .whb-header .whb-main-header {
	background: rgba(255, 255, 255, .72);
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .8), 0 10px 30px rgba(0, 0, 0, .08);
}
/* compact header once scrolled (desktop) */
.whb-general-header-inner,
.whb-general-header .wd-logo img { transition: height .45s var(--ease-out), max-height .45s var(--ease-out); }
@media (min-width: 1025px) {
	.arco-scrolled .whb-general-header-inner { height: 64px !important; max-height: 64px !important; }
	.arco-scrolled .whb-general-header .wd-logo img { max-height: 56px !important; }
}
.wd-nav-main > li > a { position: relative; }
.wd-nav-main > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 12px;
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--arco-orange);
	transform: scaleX(0);
	transition: transform .35s var(--ease-out);
}
.wd-nav-main > li > a:hover::after,
.wd-nav-main > li.current-menu-item > a::after { transform: scaleX(1); }

/* Mobile drawer */
.mobile-nav {
	background: rgba(255, 255, 255, .78) !important;
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
}

/* ---------- Hero: glass panel over the photo ---------- */
.arco-hero { overflow: hidden; }
.arco-hero .wp-block-cover__image-background {
	transform: scale(1.08) translate3d(0, var(--hero-shift, 0px), 0);
	will-change: transform;
}
.arco-hero .wp-block-cover__background { opacity: .45 !important; }
.arco-hero .wp-block-cover__inner-container {
	position: relative;
	width: min(760px, calc(100% - 32px)) !important;
	max-width: 760px !important;
	margin-inline-start: max(16px, calc(50% - 600px));
	margin-inline-end: auto;
	padding: 44px 44px 40px;
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .05) 60%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, .28);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .5),
		inset 0 -1px 0 rgba(255, 255, 255, .08),
		0 40px 80px rgba(0, 0, 0, .35);
}
/* specular highlight */
.arco-hero .wp-block-cover__inner-container::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background: radial-gradient(120% 60% at 85% 0%, rgba(255, 255, 255, .28), transparent 55%);
	mix-blend-mode: soft-light;
}
.arco-hero .wp-block-cover__inner-container > * { max-width: none !important; }

/* ---------- Buttons: pills with liquid highlight ---------- */
.arco-landing .wp-block-button__link,
.arco-footer .wp-block-button__link,
.arco-foot-cta .wp-block-button__link {
	position: relative;
	overflow: hidden;
	border-radius: 999px !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px rgba(239, 78, 35, .25);
	transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.arco-landing .wp-block-button__link::after,
.arco-foot-cta .wp-block-button__link::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 40%;
	inset-inline-start: -60%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: skewX(-20deg);
	transition: inset-inline-start .7s var(--ease-out);
}
.arco-landing .wp-block-button__link:hover,
.arco-foot-cta .wp-block-button__link:hover { transform: translateY(-2px); }
.arco-landing .wp-block-button__link:hover::after,
.arco-foot-cta .wp-block-button__link:hover::after { inset-inline-start: 120%; }
/* outline buttons become glass */
.arco-landing .wp-block-button__link.has-border-color,
.arco-foot-cta .wp-block-button__link.has-border-color {
	background: rgba(255, 255, 255, .12) !important;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-color: rgba(255, 255, 255, .45) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}

/* ---------- Glass tiles on dark sections ---------- */
.arco-stats { border-top: 0; gap: 14px; }
.arco-stat {
	border: 1px solid var(--glass-edge-dark) !important;
	border-radius: var(--radius-md);
	background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.arco-capacity { border-top: 0; gap: 12px; }
.arco-capacity div {
	padding: 18px 16px !important;
	border: 1px solid var(--glass-edge-dark) !important;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, .06);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* ---------- Glass cards on light sections ---------- */
.arco-box {
	position: relative;
	border-radius: var(--radius-md);
	border: 1px solid rgba(255, 255, 255, .9);
	border-top: 1px solid rgba(255, 255, 255, .9);
	background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .7));
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 40px rgba(38, 37, 36, .08);
	overflow: hidden;
	transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.arco-box::before {
	content: "";
	position: absolute;
	top: 0;
	inset-inline: 22px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--arco-orange);
}
.arco-box:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 28px 60px rgba(38, 37, 36, .14); }

.arco-card {
	border-radius: var(--radius-md);
	overflow: hidden;
	border-color: rgba(0, 0, 0, .06);
	box-shadow: 0 14px 34px rgba(38, 37, 36, .07);
}
.arco-card__body { border-top: 0; position: relative; }
.arco-card__body::before {
	content: "";
	position: absolute;
	top: 0;
	inset-inline: 22px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--arco-orange);
}
.arco-card__tag {
	align-self: flex-start;
	padding: 3px 12px;
	border-radius: 999px;
	background: rgba(239, 78, 35, .1);
}

/* Images: soft corners */
.arco-landing .wp-block-gallery .wp-block-image img,
.arco-landing .wp-block-image img,
.arco-frame img { border-radius: var(--radius-md); }
.arco-frame img { box-shadow: -18px 18px 0 var(--arco-orange), 0 30px 60px rgba(0, 0, 0, .18); }
.arco-landing .wp-block-gallery .wp-block-image { overflow: hidden; border-radius: var(--radius-md); }
.arco-landing .wp-block-gallery .wp-block-image img { transition: transform .8s var(--ease-out); }
.arco-landing .wp-block-gallery .wp-block-image:hover img { transform: scale(1.06); }
.wp-block-gallery.arco-contain figure.wp-block-image { border-radius: var(--radius-md); box-shadow: 0 10px 28px rgba(38, 37, 36, .07); }

/* Filters & table */
.arco-filter button { border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.arco-table-wrap { border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 14px 34px rgba(38, 37, 36, .07); }
.arco-more { border-radius: 999px; }
@media (max-width: 600px) {
	.arco-table-wrap { border-radius: 0; overflow: visible; box-shadow: none; }
	.arco-table tr { border-radius: 16px; overflow: hidden; }
}

/* Contact form fields */
.wpcf7 input:not([type=submit]), .wpcf7 textarea { border-radius: 14px; }
.wpcf7-submit { border-radius: 999px !important; }
.arco-map iframe { border-radius: 16px; }

/* ---------- Floating contact button (fans out into call + WhatsApp) ---------- */
.arco-dock {
	position: fixed;
	z-index: 390;
	bottom: 20px;
	inset-inline-start: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	transform: translateY(140px);
	transition: transform .6s var(--ease-out);
}
.arco-scrolled .arco-dock { transform: none; }

.arco-dock__toggle {
	position: relative;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	min-height: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	background: radial-gradient(120% 120% at 30% 20%, #ff7a4f, var(--arco-orange) 55%, #c63a14);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -3px 8px rgba(0, 0, 0, .18), 0 14px 34px rgba(239, 78, 35, .45);
	animation: arco-pulse 2.6s infinite;
	transition: transform .4s var(--ease-out);
}
.arco-dock__toggle:hover { transform: scale(1.06); }
.arco-dock__i {
	position: absolute;
	display: grid;
	place-items: center;
	transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.arco-dock__toggle, .arco-dock__toggle:hover, .arco-dock__toggle:focus { color: #fff !important; }
.arco-dock__i svg { width: 26px; height: 26px; fill: #fff !important; }
.arco-dock__i--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.arco-dock__i--close svg { width: 20px; height: 20px; }
.arco-dock.is-open .arco-dock__i--open { opacity: 0; transform: rotate(90deg) scale(.6); }
.arco-dock.is-open .arco-dock__i--close { opacity: 1; transform: none; }
.arco-dock.is-open .arco-dock__toggle { animation: none; }

.arco-dock__menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
	order: -1;
}
.arco-dock__item {
	position: relative;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .5);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), 0 10px 26px rgba(0, 0, 0, .22);
	opacity: 0;
	pointer-events: none;
	transform: translateY(24px) scale(.5);
	transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.arco-dock__item svg { width: 22px; height: 22px; fill: currentColor; }
.arco-dock__item--wa { background: rgba(37, 211, 102, .92); }
.arco-dock__item--call { background: rgba(38, 37, 36, .88); }
.arco-dock.is-open .arco-dock__item { opacity: 1; pointer-events: auto; transform: none; }
.arco-dock.is-open .arco-dock__item--call { transition-delay: 0s; }
.arco-dock.is-open .arco-dock__item--wa { transition-delay: .07s; }
.arco-dock__item:hover { color: #fff; transform: scale(1.1) !important; }

/* glass tooltip beside each icon */
.arco-dock__item::after {
	content: attr(data-tip);
	position: absolute;
	top: 50%;
	right: calc(100% + 12px);
	left: auto;
	white-space: nowrap;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--arco-ink);
	background: rgba(255, 255, 255, .78);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	border: 1px solid rgba(255, 255, 255, .9);
	box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(0, 0, 0, .14);
	opacity: 0;
	transform: translate(8px, -50%);
	pointer-events: none;
	transition: opacity .25s var(--ease-out), transform .35s var(--ease-out);
}
.arco-dock__item:hover::after,
.arco-dock__item:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
/* touch screens have no hover: show the labels whenever the menu is open */
@media (hover: none) {
	.arco-dock.is-open .arco-dock__item::after { opacity: 1; transform: translate(0, -50%); }
}
@keyframes arco-pulse {
	0% { box-shadow: 0 0 0 0 rgba(239, 78, 35, .45); }
	70% { box-shadow: 0 0 0 14px rgba(239, 78, 35, 0); }
	100% { box-shadow: 0 0 0 0 rgba(239, 78, 35, 0); }
}
.scrollToTop { border-radius: 50% !important; background: rgba(255, 255, 255, .7) !important; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }

/* ---------- Lightbox (WordPress "expand on click") ---------- */
.wp-lightbox-overlay .scrim {
	background-color: rgba(22, 21, 20, .86) !important;
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
}
/* size the preview from the image itself, not the cropped 4:3 thumbnail */
.wp-lightbox-overlay .lightbox-image-container {
	width: auto !important;
	height: auto !important;
	max-width: 92vw;
	max-height: 86vh;
	overflow: visible !important;
}
.wp-lightbox-overlay .lightbox-image-container figure { width: auto !important; height: auto !important; }
.wp-lightbox-overlay img {
	object-fit: contain !important;
	width: auto !important;
	height: auto !important;
	max-width: 92vw !important;
	max-height: 86vh !important;
	aspect-ratio: auto !important;
}
.wp-lightbox-overlay .lightbox-image-container img,
.wp-lightbox-overlay .wp-block-image img { border-radius: 14px; background: transparent !important; box-shadow: none !important; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
.wp-lightbox-overlay .close-button,
.wp-lightbox-overlay .wp-lightbox-navigation-button {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	color: #fff !important;
	fill: #fff;
	background: rgba(255, 255, 255, .14) !important;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, .28);
}
.wp-lightbox-overlay .close-button svg,
.wp-lightbox-overlay .wp-lightbox-navigation-button svg { fill: #fff; }
.wp-lightbox-container button.lightbox-trigger {
	border-radius: 50%;
	background: rgba(38, 37, 36, .6);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

/* ---------- Motion ---------- */
.arco-fx-on .arco-reveal {
	opacity: 0;
	transform: translate3d(0, 34px, 0) scale(.98);
	filter: blur(6px);
	transition:
		opacity .9s var(--ease-out) var(--d, 0ms),
		transform .9s var(--ease-out) var(--d, 0ms),
		filter .9s var(--ease-out) var(--d, 0ms);
}
.arco-fx-on .arco-reveal.is-in { opacity: 1; transform: none; filter: none; }

/* hero text cascade on load */
.arco-fx-on .arco-hero .wp-block-cover__inner-container { animation: arco-rise 1.1s var(--ease-out) both; }
.arco-fx-on .arco-hero .wp-block-cover__inner-container > * { animation: arco-rise 1s var(--ease-out) both; }
.arco-fx-on .arco-hero .wp-block-cover__inner-container > :nth-child(1) { animation-delay: .25s; }
.arco-fx-on .arco-hero .wp-block-cover__inner-container > :nth-child(2) { animation-delay: .35s; }
.arco-fx-on .arco-hero .wp-block-cover__inner-container > :nth-child(3) { animation-delay: .45s; }
.arco-fx-on .arco-hero .wp-block-cover__inner-container > :nth-child(n+4) { animation-delay: .55s; }
@keyframes arco-rise {
	from { opacity: 0; transform: translate3d(0, 30px, 0); filter: blur(8px); }
	to { opacity: 1; transform: none; filter: none; }
}
.arco-kicker::before { transform-origin: right; }
.arco-fx-on .arco-reveal.arco-kicker::before { transform: scaleX(0); transition: transform .8s var(--ease-out) calc(var(--d, 0ms) + .25s); }
.arco-fx-on .arco-reveal.arco-kicker.is-in::before { transform: scaleX(1); }

@media (max-width: 781px) {
	.arco-hero .wp-block-cover__inner-container { padding: 28px 22px 26px; border-radius: 24px; }
	.arco-dock { bottom: 16px; inset-inline-start: 16px; gap: 10px; }
	.arco-dock__toggle { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
	.arco-hero .wp-block-cover__image-background { transform: none !important; }
	.arco-dock__toggle { animation: none; }
}
