/* ==========================================================================
   Everest Multigestión Custom Design System CSS
   ========================================================================== */

/* 1. Base Typography & Resets */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f7f9fb;
    color: #191c1e;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-headline {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 2. Material Symbols Outlined Icon Tweaks */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    user-select: none;
}

/* 3. Stitch Signature Architectural Shapes & Shadows */
.catalan-arch {
    border-top-left-radius: 7rem;
    border-top-right-radius: 7rem;
}

.video-glow {
    box-shadow: 0 20px 50px -12px rgba(18, 85, 200, 0.25);
}

.card-hover-lift {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.card-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(0, 30, 80, 0.08);
}

/* 4. Video Autoplay Container & Reduced Motion Rules */
.everest-video-wrap {
    position: relative;
    overflow: hidden;
}

.everest-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .everest-video-wrap video {
        display: none !important;
    }
    .everest-video-wrap .video-fallback-poster {
        display: block !important;
    }
}

/* 5. Mobile Navigation Drawer */
#everest-mobile-menu {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    transform: translateX(100%);
}

#everest-mobile-menu.active {
    transform: translateX(0);
}

#everest-menu-backdrop {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#everest-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* 6. Form Alerts & Dynamic Notices */
.everest-form-response {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 7. Focus & Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #003e9d;
    outline-offset: 2px;
}
