/*
 * Attiva Zorg — Custom Theme Styles
 * Supplements Tailwind CDN with animations & custom components
 */

/* Hover-lift effect for cards */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}

/* Service card subtle lift */
.service-card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -4px rgba(0, 90, 156, 0.10);
}

/* Timeline connector styles */
.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: -48px;
    width: 2px;
    background: linear-gradient(to bottom, #005a9c, #c8d419);
}

.timeline-item:last-child::before {
    display: none;
}

/* View Transition API */
@view-transition {
    navigation: auto;
}

::view-transition-old(main-content) {
    animation: 0.3s ease-out both fade-out;
}

::view-transition-new(main-content) {
    animation: 0.3s ease-in 0.1s both fade-in;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Smooth anchor scrolling */
html {
    scroll-behavior: smooth;
}

/* Header shadow on scroll */
.site-header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .07), 0 2px 4px -2px rgba(0, 0, 0, .05);
    backdrop-filter: blur(16px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Mobile menu overlay */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* Prose typography tweaks for WordPress content */
.prose h2 {
    margin-top: 2em;
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose img {
    border-radius: 1rem;
}

/* WordPress-specific pagination styles */
.nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    color: #005a9c;
    background: white;
}

.nav-links .page-numbers:hover {
    background: #f1f5f9;
}

.nav-links .page-numbers.current {
    background: #005a9c;
    color: white;
    border-color: #005a9c;
}

/* Callback widget subtle entrance */
@keyframes widget-pop {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.callback-widget {
    animation: widget-pop 0.5s ease both;
}

/* Dropdown navigation styles */
.nav-dropdown {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #005a9c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 1rem 2rem;
    background: #005a9c;
    color: white;
    font-weight: 700;
}

.skip-link:focus {
    left: 0;
}