/* =============================================
   FUNIDPAC — Global Stylesheet
   ============================================= */

/* --- Material Symbols icon font config --- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* --- Hero gradient overlay --- */
.hero-gradient {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.10) 100%);
}

/* --- Soft card shadow --- */
.soft-shadow {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
}

/* --- Glassmorphism card --- */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Bento grid item hover lift --- */
.bento-item {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */

/* Generic: opacity + translateY */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Opacity only — for elements that already have hover transforms */
.fade-in {
    opacity: 0;
    transition: opacity 0.65s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */

/* Inactive nav links: animated underline on hover */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #006098;
    border-radius: 1px;
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Header shadow when scrolled */
#main-header.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.09);
}

/* Mobile menu slide-in */
#mobile-menu {
    top: 116px;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

#mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ── Hero entrance animations (CSS-driven, no observer) ─────────────────── */

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    opacity: 0;
    animation: fadeSlideUp 0.7s ease forwards;
    animation-delay: 0.25s;
}

.hero-title {
    opacity: 0;
    animation: fadeSlideUp 0.7s ease forwards;
    animation-delay: 0.45s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeSlideUp 0.7s ease forwards;
    animation-delay: 0.65s;
}

.hero-cta {
    opacity: 0;
    animation: fadeSlideUp 0.7s ease forwards;
    animation-delay: 0.85s;
}

/* Scroll indicator dot */
@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(14px);
        opacity: 1;
    }
}

.scroll-dot {
    animation: scrollBounce 1.8s ease-in-out infinite;
}

/* ── Page loader ─────────────────────────────────────────────────────────── */

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fbf9f8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.loader-ring {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #cee5ff;
    border-top-color: #006098;
    animation: loader-spin 1s linear infinite;
}

.loader-ring img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.loader-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: #006098;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── WhatsApp floating button ─────────────────────────────────────────────── */

#whatsapp-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 1000;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

#whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

@media (max-width: 768px) {
    .hero-title.font-headline-xl {
        font-size: 25px;
    }

    .hero-subtitle.text-body-lg {
        font-size: 15px !important;
    }

    .hero-cta {
        display: none !important;
    }
}