/* =====================================================================
   Shree Swami Milk Supplier — Custom styles (on top of Tailwind CDN)
   ===================================================================== */

:root {
    --primary: #0B5ED7;
    --primary-dark: #0847A6;
    --cream: #F8FAFC;
    --green: #2E8B57;
    --gold: #F4B400;
}

html { scroll-padding-top: 6rem; } /* offset sticky header for anchor jumps */

body { overflow-x: hidden; }

/* --- Reusable section heading eyebrow --- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
}

/* --- Navbar scrolled state (toggled by JS) --- */
#site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(11, 94, 215, .28); }

/* --- Underline animation for desktop nav links --- */
.nav-link { position: relative; }
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

/* --- Milk splash / gradient helpers --- */
.bg-milk-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--cream) 55%, #eaf2fe 100%);
}
.bg-hero-gradient {
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(244,180,0,.16), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(46,139,87,.14), transparent 55%),
        linear-gradient(135deg, #0847A6 0%, #0B5ED7 55%, #3B82F6 100%);
}
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Card hover lift --- */
.card-lift { transition: transform .3s ease, box-shadow .3s ease; }
.card-lift:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -20px rgba(11,94,215,.35); }

/* --- Reveal on scroll (JS adds .in-view) --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* --- Image graceful fallback (broken photo -> themed gradient) --- */
img.img-fallback { background: linear-gradient(135deg, var(--cream), #e6eefc); }

/* --- Gallery image ratio --- */
.gallery-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* --- Marquee-free simple divider wave --- */
.section-wave { display: block; width: 100%; height: auto; }

/* --- Forms --- */
.form-input, .form-select, .form-textarea {
    width: 100%;
    border-radius: .75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: .75rem 1rem;
    color: #0f172a;
    transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11,94,215,.12);
}

/* --- Star rating --- */
.stars { color: var(--gold); letter-spacing: 2px; }

/* --- Print-friendly admin --- */
@media print {
    .no-print { display: none !important; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    .animate-floaty, .animate-fadeUp { animation: none !important; }
    html { scroll-behavior: auto; }
}
