/* Custom Fonts are loaded in HTML */

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

/* Hero Background with Parallax Effect - DEPRECATED in favor of Slideshow */
/* .hero-bg { ... } */

/* Ken Burns Slideshow */
.kb-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: #000;
    /* Fallback */
}

.kb-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    animation: kenBurns 24s linear infinite;
}

/* Slide Delays and Images for 3-slide loop (24s total, 8s each, 2s overlapping) */
.kb-slide:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1555244162-803834f70033?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    animation-delay: 0s;
}

.kb-slide:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1519671482502-9759101d2363?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    animation-delay: 8s;
}

.kb-slide:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    animation-delay: 16s;
}

@keyframes kenBurns {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    3% {
        opacity: 1;
        /* Quick Fade In */
    }

    33.33% {
        opacity: 1;
        /* Stay visible until next slide comes in */
        transform: scale(1.15);
        /* Slow Zoom */
    }

    41.66% {
        opacity: 0;
        /* Fade out as next slide is fully visible (at 3% + 33% mark relative to its start) */
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.2s;
}

.delay-200 {
    animation-delay: 0.4s;
}

.delay-300 {
    animation-delay: 0.6s;
}

/* Enhanced Typography Specifics */
.font-display {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

/* Form Decoration */
.form-input-focus:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    /* Orange glow */
    border-color: #f97316;
}