/**
 * Elahera Custom CSS
 * Extracted animations, keyframes, transitions, and component styles.
 */

.bg-dot-pattern {
    background-size: 24px 24px;
}

/* Active Nav Indicator */
.desktop-nav-link.active-nav,
.mobile-link.active-nav {
    color: #0E6E77 !important;
    font-weight: 800 !important;
}

.desktop-nav-link.active-nav::after {
    content: " " !important;
    position: absolute !important;
    bottom: -6px !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #E5A52C !important;
    display: block !important;
    border-radius: 2px !important;
}

/* Modern organic shapes */
.shape-blob {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transition: all 0.5s ease;
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.service-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(14, 110, 119, 0.15);
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 800px;
    overflow-y: auto;
    opacity: 1;
}

/* Hide Scrollbars */
.hide-scroll::-webkit-scrollbar {
    display: none;
}

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

/* Hero Crossfade Animations */
@keyframes hero-crossfade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    33.33% {
        opacity: 1;
        transform: scale(1.05);
    }
    43.33% {
        opacity: 0;
        transform: scale(1.05);
    }
    90% {
        opacity: 0;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-slide-1 {
    animation: hero-crossfade 24s infinite;
    animation-delay: 0s;
}

.hero-slide-2 {
    animation: hero-crossfade 24s infinite;
    animation-delay: -16s;
}

.hero-slide-3 {
    animation: hero-crossfade 24s infinite;
    animation-delay: -8s;
}

/* Keyframes for float & ping */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

/* Gutenberg prose styling for legal and default pages */
article.post h2, article.page h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2F3A3F;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

article.post h3, article.page h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2F3A3F;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

article.post p, article.page p {
    color: rgba(47, 58, 63, 0.75);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

article.post a, article.page a {
    color: #0E6E77;
    font-weight: 600;
    text-decoration: underline;
}

article.post a:hover, article.page a:hover {
    color: #E5A52C;
}

article.post ul, article.page ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: rgba(47, 58, 63, 0.75);
}

article.post ol, article.page ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: rgba(47, 58, 63, 0.75);
}
