/* ===== Typography ===== */
body,
.font-sans {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

.font-display {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    letter-spacing: -0.015em;
}

h1.font-display,
h2.font-display,
h3.font-display {
    text-wrap: balance;
}

/* ===== Public Frontend Animations ===== */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(200, 134, 10, 0.25); }
    50% { box-shadow: 0 0 40px rgba(200, 134, 10, 0.45); }
}

@keyframes ken-burns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.hero-ken-burns { animation: ken-burns 20s ease-out forwards alternate infinite; }

.text-shimmer {
    background: linear-gradient(90deg, #F5E6C8 0%, #C8860A 50%, #F5E6C8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

.card-hover {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 58, 47, 0.12);
}

.card-shine { position: relative; overflow: hidden; }
.card-shine::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}
.card-shine:hover::after { left: 150%; }

.img-zoom { overflow: hidden; }
.img-zoom img, .img-zoom > div { transition: transform 0.6s ease; }
.img-zoom:hover img, .img-zoom:hover > div { transform: scale(1.08); }

.section-divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, #C8860A, #1E3A2F);
    border-radius: 2px;
}

.btn-glow { transition: all 0.3s ease; }
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 134, 10, 0.35);
}

html, body { overflow-x: hidden; max-width: 100vw; }
body.menu-open { overflow: hidden; position: fixed; width: 100%; }

.masonry { column-count: 1; column-gap: 1rem; }
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }
.masonry-item { break-inside: avoid; margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-ken-burns { animation: none; }
}

[x-cloak] { display: none !important; }

#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #C8860A, #F5E6C8);
    z-index: 9999;
    width: 0%;
}

.stat-badge { background: linear-gradient(135deg, #1E3A2F 0%, #2D5A46 100%); }

.admin-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.admin-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30, 58, 47, 0.08); }
.admin-stat-icon { transition: transform 0.3s ease; }
.admin-card:hover .admin-stat-icon { transform: scale(1.1) rotate(-5deg); }
.tab-content-enter { animation: scale-in 0.35s ease forwards; }
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== WhatsApp floating button ===== */
.wa-float {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem 0.75rem 0.85rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    max-width: calc(100vw - 2rem);
}

.wa-float:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
    color: #fff;
}

.wa-float__pulse {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: rgba(37, 211, 102, 0.45);
    animation: wa-pulse 2s ease-out infinite;
    pointer-events: none;
}

.wa-float__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-float__label {
    position: relative;
    z-index: 1;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .wa-float {
        padding: 0.85rem;
        border-radius: 9999px;
    }

    .wa-float__label {
        display: none;
    }
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float__pulse { animation: none; }
}
