/* ============================================================
   AIKO GLOBAL INTERACTIONS & MICRO-UX
   Playful & tactile system matching Pally + ink borders
   ============================================================ */

/* Scroll Progress Bar inside sticky navbar */
.aiko-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 120;
	width: 100%;
	height: 3.5px;
	background: transparent;
	pointer-events: none;
}

.aiko-scroll-progress__bar {
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, var(--green) 0%, var(--yellow) 55%, var(--orange) 100%);
	transform-origin: 0 50%;
	transform: scaleX(0);
	transition: transform .08s linear;
}

/* Navbar scrolled state */
.site-header {
	transition: box-shadow .22s ease, background-color .22s ease;
}

.site-header.is-scrolled {
	background: rgba(250, 250, 230, .98);
	box-shadow: 0 8px 24px rgba(32, 37, 31, .09);
}

/* Tactile button press feedback */
.btn {
	transition: transform .16s cubic-bezier(.22, 1, .36, 1), box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.btn--primary:active {
	transform: translateY(4px);
	box-shadow: 0 2px 0 #153e1d;
}

.btn--orange:active {
	transform: translateY(4px);
	box-shadow: 0 2px 0 #bf5c11;
}

.btn--secondary:active {
	transform: translateY(2px);
}

/* Tactile card hover elevation across pages */
.product-card,
.support-card,
.intro-card,
.category-card,
.other-card,
.package-option,
.concern-card,
.audience-grid article,
.reason-grid li,
.value-card,
.mission-card,
.capability-card,
.contact-card,
.contact-guide article,
.gallery-card {
	transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease, border-color .22s ease;
}

.product-card:hover,
.category-card:hover,
.other-card:hover,
.package-option:hover,
.gallery-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(39, 104, 50, .14);
}

.support-card:hover,
.concern-card:hover,
.audience-grid article:hover,
.value-card:hover,
.mission-card:hover,
.capability-card:hover,
.contact-card:hover,
.contact-guide article:hover {
	transform: translateY(-3px);
	border-color: var(--green-dark);
	box-shadow: 0 12px 24px rgba(39, 104, 50, .10);
}

/* Smooth zoomable image affordance */
[data-lightbox-group] {
	cursor: zoom-in;
	position: relative;
}

.lightbox-trigger-wrap {
	position: relative;
	overflow: hidden;
}

.lightbox-zoom-badge {
	position: absolute;
	right: 12px;
	top: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	color: var(--ink);
	font-size: .74rem;
	font-weight: 700;
	box-shadow: 2px 2px 0 var(--ink);
	pointer-events: none;
	opacity: .92;
	transition: transform .18s ease, background-color .18s ease;
}

[data-lightbox-group]:hover .lightbox-zoom-badge {
	background: var(--yellow);
	transform: scale(1.05);
}

/* Scroll Reveal Animation (progressive enhancement) */
html.js-ready [data-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .52s cubic-bezier(.22, 1, .36, 1), transform .52s cubic-bezier(.22, 1, .36, 1);
	transition-delay: var(--reveal-delay, 0ms);
}

html.js-ready [data-reveal].is-revealed {
	opacity: 1;
	transform: translateY(0);
}

/* ============================================================
   GLOBAL LIGHTBOX MODAL
   ============================================================ */
.aiko-lightbox {
	position: fixed;
	inset: 0;
	z-index: 950;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(20, 28, 22, .84);
	backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .22s ease, visibility .22s ease;
}

.aiko-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.aiko-lightbox__dialog {
	position: relative;
	width: min(920px, 100%);
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 3px solid var(--ink);
	border-radius: 26px;
	box-shadow: 10px 10px 0 var(--yellow);
	overflow: hidden;
	transform: scale(.94) translateY(10px);
	transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}

.aiko-lightbox.is-open .aiko-lightbox__dialog {
	transform: scale(1) translateY(0);
}

.aiko-lightbox__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 18px;
	background: var(--cream);
	border-bottom: 2px solid var(--ink);
}

.aiko-lightbox__counter {
	font-size: .84rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--yellow);
	border: 1.5px solid var(--ink);
	color: var(--ink);
}

.aiko-lightbox__close {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 2px solid var(--ink);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}

.aiko-lightbox__close:hover {
	background: var(--orange);
	transform: rotate(90deg);
}

.aiko-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f9faf5;
	min-height: 260px;
	max-height: 62vh;
	padding: 16px 52px;
	overflow: hidden;
}

.aiko-lightbox__img {
	max-width: 100%;
	max-height: 58vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 14px;
	transition: opacity .2s ease;
}

.aiko-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	font-size: 1.5rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 0 var(--ink);
	transition: background-color .15s ease, transform .15s ease;
}

.aiko-lightbox__nav:hover {
	background: var(--yellow);
}

.aiko-lightbox__nav:active {
	transform: translateY(calc(-50% + 2px));
	box-shadow: 0 2px 0 var(--ink);
}

.aiko-lightbox__nav--prev { left: 10px; }
.aiko-lightbox__nav--next { right: 10px; }
.aiko-lightbox__nav[hidden] { display: none; }

.aiko-lightbox__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	background: #fff;
	border-top: 2px solid var(--line);
}

.aiko-lightbox__caption {
	margin: 0;
	font-weight: 700;
	font-size: 1rem;
	color: var(--ink);
	flex: 1 1 220px;
}

.aiko-lightbox__cta {
	min-height: 40px;
	padding: 8px 16px;
	font-size: .88rem;
}

.aiko-lightbox__cta[hidden] {
	display: none;
}

/* ============================================================
   SMART FLOATING WHATSAPP WIDGET (WEB-BR-050)
   ============================================================ */
.wa-widget {
	position: fixed;
	z-index: 95;
	right: 16px;
	bottom: 16px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	pointer-events: none;
}

.wa-widget.is-open {
	z-index: 99;
}

.wa-widget .wa-float {
	position: static;
	cursor: pointer;
	pointer-events: auto;
	transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s ease, background-color .18s ease;
}

.wa-widget .wa-float:hover {
	transform: translateY(-3px);
	background: #278847;
}

.wa-widget .wa-float:active {
	transform: translateY(3px);
	box-shadow: 0 3px 0 #155929;
}

.wa-float__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--yellow);
	box-shadow: 0 0 0 0 rgba(249, 191, 38, .7);
	animation: aikoWaPulse 2.4s infinite;
}

@keyframes aikoWaPulse {
	0% { box-shadow: 0 0 0 0 rgba(249, 191, 38, .75); }
	70% { box-shadow: 0 0 0 9px rgba(249, 191, 38, 0); }
	100% { box-shadow: 0 0 0 0 rgba(249, 191, 38, 0); }
}

.wa-popover {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	width: min(320px, calc(100vw - 28px));
	background: #fff;
	border: 2.5px solid var(--ink);
	border-radius: 22px;
	box-shadow: 8px 8px 0 var(--green-dark);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px) scale(.95);
	transform-origin: bottom right;
	transition: opacity .2s ease, transform .22s cubic-bezier(.22, 1, .36, 1), visibility .2s ease;
}

.wa-widget.is-open .wa-popover {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.wa-popover__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	background: var(--green-dark);
	color: #fff;
}

.wa-popover__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.2;
}

.wa-popover__sub {
	margin: 2px 0 0;
	font-size: .78rem;
	color: #e2f2e5;
}

.wa-popover__close {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 1.5px solid rgba(255, 255, 255, .45);
	border-radius: 10px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.wa-popover__close:hover {
	background: rgba(255, 255, 255, .25);
}

.wa-popover__body {
	padding: 12px;
	display: grid;
	gap: 8px;
	background: var(--cream);
}

.wa-popover__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 13px;
	border: 2px solid var(--ink);
	border-radius: 14px;
	background: #fff;
	color: var(--ink);
	font-size: .88rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.wa-popover__option:hover {
	background: var(--yellow);
	transform: translateX(-2px);
	box-shadow: 3px 3px 0 var(--ink);
}

.wa-popover__option small {
	display: block;
	font-weight: 400;
	font-size: .76rem;
	color: var(--muted);
}

.wa-popover__arrow {
	font-weight: 700;
	color: var(--green-dark);
	flex-shrink: 0;
}

/* ============================================================
   BACK TO TOP BUTTON & TOAST NOTIFICATION
   ============================================================ */
.aiko-back-top {
	position: fixed;
	z-index: 96;
	right: 20px;
	bottom: 84px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 2px solid var(--ink);
	border-radius: 14px;
	background: var(--yellow);
	color: var(--ink);
	font-weight: 700;
	cursor: pointer;
	pointer-events: none;
	box-shadow: 0 4px 0 var(--ink);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background-color .15s ease;
}

.aiko-back-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.aiko-back-top:hover {
	background: var(--orange);
}

.aiko-back-top:active {
	transform: translateY(2px);
	box-shadow: 0 2px 0 var(--ink);
}

.aiko-toast {
	position: fixed;
	z-index: 980;
	left: 16px;
	bottom: 20px;
	max-width: min(360px, calc(100vw - 32px));
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border: 2px solid var(--ink);
	border-radius: 16px;
	background: var(--ink);
	color: #fff;
	font-size: .9rem;
	font-weight: 700;
	box-shadow: 5px 5px 0 var(--yellow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1), visibility .22s ease;
}

.aiko-toast.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.aiko-toast__icon {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	font-size: .82rem;
	flex-shrink: 0;
}

/* Copy pill button utility */
.btn--copy-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	min-height: 36px;
	border: 1.5px solid var(--ink);
	border-radius: 999px;
	background: var(--cream);
	color: var(--ink);
	font-size: .82rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}

.btn--copy-inline:hover {
	background: var(--yellow);
	transform: translateY(-1px);
}

@media (min-width: 700px) {
	.wa-widget {
		right: 26px;
		bottom: 24px;
	}
	.aiko-back-top {
		right: 28px;
		bottom: 92px;
	}
	.aiko-toast {
		left: 26px;
		bottom: 24px;
	}
}

@media (max-width: 640px) {
	.aiko-lightbox__stage {
		padding: 12px 12px 54px;
	}
	.aiko-lightbox__nav {
		top: auto;
		bottom: 8px;
		transform: none;
		width: 40px;
		height: 40px;
	}
	.aiko-lightbox__nav:active {
		transform: translateY(2px);
	}
	.aiko-lightbox__nav--prev { left: calc(50% - 48px); }
	.aiko-lightbox__nav--next { right: calc(50% - 48px); }
}

@media (prefers-reduced-motion: reduce) {
	html.js-ready [data-reveal] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.aiko-scroll-progress__bar,
	.btn,
	.product-card,
	.support-card,
	.category-card,
	.other-card,
	.package-option,
	.gallery-card,
	.aiko-lightbox,
	.aiko-lightbox__dialog,
	.wa-popover,
	.aiko-back-top,
	.aiko-toast {
		transition: none !important;
	}
	.wa-float__dot {
		animation: none !important;
	}
}
