/* Custom styles for Jonathan Creek Cabins */
/* This file supplements Tailwind CSS with project-specific enhancements */

/* Selection color */
::selection {
    background-color: #4a9e89;
    color: #ffffff;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #4a9e89;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    nav, .menu-btn, #mobile-menu, .btn-primary, .btn-secondary, .btn-outline-light {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .split-hero {
        min-height: auto;
    }
    
    .hero-img {
        height: auto;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .parallax-section {
        background-attachment: scroll !important;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
    
    .feature-card {
        border: 1px solid ButtonText;
    }
}

/* Landscape on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .split-hero {
        min-height: auto;
    }
    
    .hero-img {
        height: 50vh;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .font-serif {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
}
