/* ============================================
   DYKE FAMILY'S CAMP — Custom Styles
   ============================================ */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #ecfdf5;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* --- Clip diagonal for hero --- */
.clip-diagonal {
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* --- Smooth scroll --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- Reveal animations (progressive enhancement) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Mobile menu transition --- */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding-top: 0;
}

/* --- Card hover lift --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Nav active state --- */
nav a.active {
    color: #059669;
}

/* --- Form improvements --- */
input::placeholder,
textarea::placeholder {
    color: rgba(167, 243, 208, 0.4);
}

/* --- Image loading --- */
img {
    image-rendering: auto;
}

/* --- Print styles --- */
@media print {
    nav, #contactForm, button {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
