/* 
   Bacco & Venere di Rita - Custom Styles
   Complementing the Tailwind CSS layout (Stitch design system)
*/

/* --- Custom Typography Adjustments --- */
h1, h2, h3, h4, .font-title-lg {
    font-family: 'EB Garamond', serif;
}

body, input, select, textarea, button {
    font-family: 'Karla', sans-serif;
}

/* --- Entry Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animated-text {
    opacity: 0;
    animation: fadeInUp 1000ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animated-card {
    opacity: 0;
    animation: fadeInUp 1000ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}

/* --- Bento Card & Hover Enhancements --- */
.bento-card {
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    box-shadow: 0 12px 30px -10px rgba(0, 59, 27, 0.08);
    transform: translateY(-4px);
}

/* --- Toast Spinner --- */
.loader {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid #ffffff;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Active link transitions --- */
.active-link {
    transition: border-color 0.3s ease, color 0.3s ease;
}

/* --- Support prefers-reduced-motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: -1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    .hero-animated-text, .hero-animated-card {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .bento-card:hover {
        transform: none !important;
    }
}
