/* ================================================================
   Shree Niddhi Creation — App Stylesheet
   ================================================================
   Tailwind provides the base; this file handles:
   1. Custom resets / typography fallbacks
   2. Accessibility helpers
   3. Subtle interaction polish
   4. Image LQIP blur-up
   ================================================================ */

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }

/* Selection */
::selection { background: #1F5A3C; color: #F5EFE0; }

/* Focus ring */
:focus-visible {
    outline: 3px solid #1F5A3C;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* Line clamp fallback */
.line-clamp-1, .line-clamp-2, .line-clamp-3, .line-clamp-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.line-clamp-4 { -webkit-line-clamp: 4; }

/* LQIP blur-up for images */
picture[style*="background-image"] img {
    animation: image-fade-in 0.4s ease-out;
}
@keyframes image-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Smooth range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
    background: #E5E7EB;
    height: 6px;
    border-radius: 999px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #1F5A3C;
    height: 18px;
    width: 18px;
    border-radius: 999px;
    margin-top: -6px;
    box-shadow: 0 2px 6px rgba(31, 90, 60, 0.35);
    transition: transform 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb {
    background: #1F5A3C;
    height: 18px;
    width: 18px;
    border-radius: 999px;
    border: none;
    box-shadow: 0 2px 6px rgba(31, 90, 60, 0.35);
}

/* Smooth scrollbar on WebKit */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F5EFE0; }
::-webkit-scrollbar-thumb { background: #1F5A3C; border-radius: 999px; border: 2px solid #F5EFE0; }
::-webkit-scrollbar-thumb:hover { background: #143E2A; }

/* Print */
@media print {
    header, footer, .whatsapp-float, [class*="cta"] { display: none !important; }
    body { color: #000; background: #fff; }
}

/* Prose tweaks for content areas */
.prose a { color: #1F5A3C; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: #143E2A; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: 'Playfair Display', Georgia, serif; color: #1A1A1A; }
.prose strong { color: #1A1A1A; }

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