/* ═══════════════════════════════════════════
   Katurukila Theme — Functional / JS-hooked CSS
   (Tailwind utilities are handled by CDN)
   ═══════════════════════════════════════════ */

/* ── Base ── */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f0fdf4; }
::-webkit-scrollbar-thumb { background: #166534; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #f59e0b; }

/* ── Scroll reveal ── */
.kt-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.kt-reveal.visible { opacity: 1; transform: translateY(0); }
.kt-reveal-delay-1 { transition-delay: 0.1s; }
.kt-reveal-delay-2 { transition-delay: 0.2s; }
.kt-reveal-delay-3 { transition-delay: 0.3s; }
.kt-reveal-delay-4 { transition-delay: 0.4s; }

/* ── Nav: always solid opaque green ── */
#kt-nav {
    background: #052e16;
    border-bottom: 2px solid #f59e0b;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

/* ── Nav: scrolled — subtle extra shadow ── */
#kt-nav.scrolled {
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}

/* ── Burger animation ── */
#kt-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
#kt-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#kt-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile nav open state ── */
#kt-mobile-nav.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ── Hero slides ── */
.kt-slide {
    opacity: 0;
    transition: opacity 0.9s ease;
    transform-origin: center center;
    will-change: transform, opacity;
}
.kt-slide.active { opacity: 1; }

/* ── Ken Burns — each slide gets a different direction ── */
@keyframes kt-kb-1 {
    from { transform: scale(1.0) translate(0, 0); }
    to   { transform: scale(1.12) translate(-2%, -1%); }
}
@keyframes kt-kb-2 {
    from { transform: scale(1.0) translate(0, 0); }
    to   { transform: scale(1.10) translate(2%, 1%); }
}
@keyframes kt-kb-3 {
    from { transform: scale(1.0) translate(0, 0); }
    to   { transform: scale(1.08) translate(-1%, 2%); }
}
@keyframes kt-kb-4 {
    from { transform: scale(1.0) translate(0, 0); }
    to   { transform: scale(1.12) translate(1.5%, -1.5%); }
}

.kt-slide:nth-child(1).active { animation: kt-kb-1 9s ease-out forwards; }
.kt-slide:nth-child(2).active { animation: kt-kb-2 9s ease-out forwards; }
.kt-slide:nth-child(3).active { animation: kt-kb-3 9s ease-out forwards; }
.kt-slide:nth-child(4).active { animation: kt-kb-4 9s ease-out forwards; }

/* ── Hero dots ── */
.kt-dot {
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.35s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.kt-dot:hover { background: rgba(255, 255, 255, 0.6); }
.kt-dot.active {
    background: #f59e0b;
    transform: scale(1.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ── Scroll indicator bounce ── */
@keyframes kt-bounce {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50%       { transform: translateY(8px) translateX(-50%); }
}
.kt-scroll-hint { animation: kt-bounce 2s ease-in-out infinite; }

/* ── Scroll-top visible state ── */
#kt-scroll-top.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* ── Lightbox open state ── */
#kt-lightbox.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ── Gallery hover overlay ── */
.kt-gallery-item:hover .kt-gallery-overlay { opacity: 1; }

/* ── Form message states ── */
.kt-form-msg.success { color: #166534; }
.kt-form-msg.error   { color: #dc2626; }

/* ── WP editor prose ── */
.kt-prose { line-height: 1.8; color: #374151; }
.kt-prose h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.625rem;
    font-weight: 700;
    color: #14532d;
    margin: 2.25rem 0 0.75rem;
    line-height: 1.3;
}
.kt-prose h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #166534;
    margin: 1.75rem 0 0.5rem;
}
.kt-prose p  { margin-bottom: 1.2rem; }
.kt-prose ul { list-style: disc; padding-left: 1.75rem; margin-bottom: 1.2rem; }
.kt-prose ol { list-style: decimal; padding-left: 1.75rem; margin-bottom: 1.2rem; }
.kt-prose li { margin-bottom: 0.4rem; }
.kt-prose a  { color: #15803d; text-decoration: underline; }
.kt-prose a:hover { color: #d97706; }
.kt-prose blockquote {
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    font-style: italic;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}
.kt-prose strong { color: #14532d; }
.kt-prose img { border-radius: 12px; max-width: 100%; height: auto; margin: 1.5rem 0; }

/* ── Inner page hero decorative pattern ── */
.kt-page-hero-pattern {
    background-image:
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 24px
        );
}

/* ── Premium button pulse on hero CTA ── */
@keyframes kt-pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50%       { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}
.kt-btn-pulse { animation: kt-pulse-gold 2.4s ease-in-out infinite; }

/* ── Section gold accent line ── */
.kt-gold-bar {
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 2px;
    margin: 12px 0 24px;
}
.kt-gold-bar.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Premium image fallback (bg-color if image missing) ── */
.kt-img-wrap { background-color: #166534; }
