/**
 * Wijaya Tours — Custom Styles
 * Replicates all custom CSS from the original HTML landing page.
 *
 * @package Wijaya_Tours
 */

/* ─── Base ─── */
* { font-family: 'Inter', sans-serif; scroll-behavior: smooth; }
.font-playfair { font-family: 'Playfair Display', serif; }

/* ─── Hero Background ─── */
.hero-bg {
	background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)),
		var(--hero-bg-url, url('')) center/cover no-repeat;
}

/* ─── Card Hover ─── */
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* ─── Nav Link Underline ─── */
.nav-link { position: relative; }
.nav-link::after {
	content: ''; position: absolute; bottom: -2px; left: 0;
	width: 0; height: 2px; background: #E8A838; transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ─── Animations ─── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeIn { animation: fadeIn 1s ease forwards; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ─── Scroll Reveal ─── */
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ─── Gallery Masonry ─── */
.wt-masonry {
	columns: 4;
	column-gap: 12px;
	padding: 4px 0;
}
.wt-m-item {
	break-inside: avoid;
	margin-bottom: 12px;
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	position: relative;
}
.wt-m-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}
.wt-m-item:hover img { transform: scale(1.1); }
.wt-m-item .wt-m-overlay {
	position: absolute; inset: 0;
	background: rgba(0,0,0,0.35);
	display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity 0.3s;
	backdrop-filter: blur(1px);
}
.wt-m-item:hover .wt-m-overlay { opacity: 1; }
.wt-m-item .wt-m-overlay i {
	color: white;
	font-size: 28px;
	background: rgba(255,255,255,0.2);
	width: 56px; height: 56px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	transition: transform 0.3s, background 0.3s;
}
.wt-m-item:hover .wt-m-overlay i {
	transform: scale(1.15);
	background: rgba(255,255,255,0.35);
}
.wt-m-item.wt-m-hidden { display: none; }

@media (max-width: 1024px) {
	.wt-masonry { columns: 3; }
}
@media (max-width: 768px) {
	.wt-masonry { columns: 2; }
}
@media (max-width: 480px) {
	.wt-masonry { columns: 1; }
}

/* ─── Gallery Lightbox ─── */
.wt-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; flex-direction: column; }
.wt-lightbox.active { display: flex; }
.wt-lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 12px; object-fit: contain; }
.wt-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: white; border: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 20px; transition: background 0.3s; display: flex; align-items: center; justify-content: center; }
.wt-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.wt-lb-prev { left: 20px; }
.wt-lb-next { right: 20px; }
.wt-lightbox-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.15); color: white; border: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.wt-lb-caption { color: white; margin-top: 16px; font-size: 14px; opacity: 0.8; }

/* ─── Package Badge ─── */
.pkg-badge { position: absolute; top: 12px; right: 12px; }

/* ─── Mobile Menu ─── */
.mobile-menu { transform: translateX(100%); transition: transform 0.3s ease; }
.mobile-menu.open { transform: translateX(0); }

/* ─── WhatsApp Float ─── */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 4px 15px rgba(37,211,102,0.4); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); color: white; }
