/* Public pages (home, features, privacy) — one look (owner 2026-11-08: "blue + saffron, dark to light, futuristic, Madhubani
   ka sujhaav, interactive"). Calm content panels over a soft aurora, glass cards, and Madhubani-style line art of our own
   (double-line borders, fish, sun) that draws itself as it scrolls into view. Motion stops for prefers-reduced-motion. */
:root {
    --b-950: #061233; --b-900: #0b1e4a; --b-800: #102a6b; --b-700: #1640a0; --b-600: #0253cc; --b-500: #2f6fe6;
    --b-400: #5b8ff0; --b-300: #93b4f6; --b-200: #c4d6fb; --b-100: #e3ecfd; --b-50: #f2f6fe;
    --s-900: #7a2e00; --s-800: #a03d00; --s-700: #c75100; --s-600: #e0660a; --s-500: #ff7f1f;
    --s-400: #ff9b44; --s-300: #ffb877; --s-200: #ffd4ab; --s-100: #ffe9d6; --s-50: #fff6ee;
    --ink: #13213f; --muted: #5b6474; --glass: rgba(255,255,255,.72); --glass-line: rgba(255,255,255,.65);
}
body.pub { font-family: 'DM Sans', sans-serif; color: var(--ink);
    background: radial-gradient(60% 50% at 0% 0%, var(--b-100) 0%, transparent 60%),
                radial-gradient(50% 40% at 100% 10%, var(--s-100) 0%, transparent 60%),
                radial-gradient(60% 60% at 50% 100%, var(--b-50) 0%, transparent 70%), #fbfcff; }
/* A soft aurora that drifts very slowly behind everything. */
body.pub::before { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none; opacity: .55;
    background: conic-gradient(from 210deg at 30% 40%, var(--b-200), var(--s-200), var(--b-100), var(--s-100), var(--b-200));
    filter: blur(80px); animation: pub-drift 24s ease-in-out infinite alternate; }
@keyframes pub-drift { to { transform: translate3d(4%, -3%, 0) rotate(8deg); } }

.pub-glass { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 10px 30px rgba(11,30,74,.08); border-radius: 18px; }
.pub-lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pub-lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,30,74,.14), 0 0 0 1px var(--s-200); border-color: var(--s-200); }
.pub-grad-text { background: linear-gradient(92deg, var(--s-500), var(--s-300) 45%, var(--b-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub-btn { background: linear-gradient(135deg, var(--s-600), var(--s-700)); color: #fff; border: 0; border-radius: 12px; font-weight: 700;
    padding: .65rem 1.25rem; box-shadow: 0 8px 22px rgba(199,81,0,.35); transition: transform .2s, box-shadow .2s; text-decoration: none; display: inline-block; }
.pub-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(199,81,0,.45); }
.pub-btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.45); border-radius: 12px; font-weight: 600;
    padding: .65rem 1.25rem; text-decoration: none; display: inline-block; backdrop-filter: blur(6px); }
.pub-btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.pub-tag { display: inline-block; background: linear-gradient(90deg, var(--b-100), var(--s-100)); color: var(--b-700); font-weight: 700;
    font-size: .78rem; letter-spacing: .02em; border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }

/* Madhubani border: a double line with a row of small triangles and dots between, in the two colours. */
.pub-mb-border { height: 18px; background:
    linear-gradient(var(--s-700), var(--s-700)) top / 100% 2px no-repeat,
    linear-gradient(var(--b-700), var(--b-700)) bottom / 100% 2px no-repeat,
    url("/branding/madhubani-band.svg") center / 36px 14px repeat-x; opacity: .9; }
.pub-mb-frame { position: relative; }
.pub-mb-frame::after { content: ""; position: absolute; inset: 8px; border: 2px solid var(--s-300); border-radius: 14px; pointer-events: none;
    box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 6px var(--b-200); }

/* Line art: <svg class="pub-draw"> with stroked paths. public.js adds .is-loop — each line (pathLength 1) draws, holds and
   runs out in an endless loop with its own delay, the same motion as the sign-in clock; the sun turns, the fish swim. */
.pub-draw.is-loop path, .pub-draw.is-loop circle, .pub-draw.is-loop ellipse, .pub-draw.is-loop line, .pub-draw.is-loop polyline {
    stroke-dasharray: 1; stroke-dashoffset: 1; transition: none; animation: pub-mb-loop 14s ease-in-out infinite; }
@keyframes pub-mb-loop { 0% { stroke-dashoffset: 1; } 22% { stroke-dashoffset: 0; } 78% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.pub-draw.is-sun { transform-origin: 50% 50%; animation: pub-mb-spin 90s linear infinite; }
@keyframes pub-mb-spin { to { transform: rotate(360deg); } }
.pub-draw.is-fish { animation: pub-mb-swim 7s ease-in-out infinite alternate; }
@keyframes pub-mb-swim { from { transform: translateX(-18px); } to { transform: translateX(18px); } }
.pub-mb-border { animation: pub-mb-band 40s linear infinite; }
@keyframes pub-mb-band { from { background-position: top, bottom, 0 center; } to { background-position: top, bottom, 360px center; } }

/* The background procession (views/shared/_madhubani-art.php 'yatra'; owner 2026-11-09 "bg me chalte dikhe, aa kar nikal
   jaye"): faint, behind the content, each figure on its own lane and timing — it walks in from one side, crosses, leaves,
   and is away for a while before the next round. The horse and lion bob as they walk, the fish wave, the wheel rolls. */
.pub-yatra { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.pub-yatra .py { position: absolute; left: 0; opacity: .38; will-change: transform; transform: translateX(-40vw); }
.pub-yatra .py-fig { display: block; width: 100%; height: auto; }
.py-horse { bottom: 4vh; width: min(270px, 36vw); animation: py-ltr 30s linear infinite; }
.py-horse .py-fig { animation: py-bob .45s ease-in-out infinite alternate; }
.py-lion { bottom: 34vh; width: min(240px, 32vw); animation: py-rtl 46s linear infinite -14s; }
.py-lion .py-fig { transform: scaleX(-1); animation: py-bob-flip .9s ease-in-out infinite alternate; }
.py-fish { top: 18vh; width: min(300px, 44vw); display: flex; gap: 6px; align-items: center; animation: py-ltr 24s linear infinite -8s; }
.py-fish .py-fig { width: 33%; animation: py-wave 2.4s ease-in-out infinite alternate; }
.py-fish .py-fig:nth-child(2) { animation-delay: -.8s; margin-top: 30px; }
.py-fish .py-fig:nth-child(3) { animation-delay: -1.6s; }
.py-chakra { bottom: -24px; width: 120px; animation: py-rtl 38s linear infinite -26s; }
.py-chakra .py-fig { animation: py-roll 6s linear infinite; }
@keyframes py-ltr { 0% { transform: translateX(-40vw); } 75% { transform: translateX(110vw); } 100% { transform: translateX(110vw); } }
@keyframes py-rtl { 0% { transform: translateX(110vw); } 75% { transform: translateX(-40vw); } 100% { transform: translateX(-40vw); } }
@keyframes py-bob { to { transform: translateY(-5px) rotate(-1.5deg); } }
@keyframes py-bob-flip { from { transform: scaleX(-1); } to { transform: scaleX(-1) translateY(-4px); } }
@keyframes py-wave { from { transform: translateY(-6px) rotate(-4deg); } to { transform: translateY(6px) rotate(4deg); } }
@keyframes py-roll { to { transform: rotate(-360deg); } }

/* Reveal on scroll. */
.pub-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.pub-reveal.is-in { opacity: 1; transform: none; }

/* The current offer in full on the home page (views/shared/_offer-banner.php, $offerFull). */
.pub-offer-full { padding: 40px 0 8px; }
.pub-offer-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 0; border-radius: 24px; overflow: hidden;
    background: linear-gradient(135deg, var(--s-50), #fff 45%, var(--b-50)); border: 1.5px solid var(--s-200); box-shadow: 0 18px 50px rgba(199,81,0,.14); position: relative; }
.pub-offer-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: url("/branding/madhubani-band.svg") center / 28px 8px repeat-x, var(--s-50); }
.pub-offer-pic { width: 100%; height: auto; max-height: 560px; object-fit: contain; display: block; background: var(--s-50); }
.pub-offer-body { padding: 28px 32px; }
.pub-offer-body h2 { font-weight: 800; color: var(--b-900); font-size: clamp(1.4rem, 2.6vw, 2rem); }
.pub-offer-flag { display: inline-block; background: linear-gradient(90deg, var(--s-600), var(--s-400)); color: #fff; font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.pub-offer-till { color: var(--s-800); font-weight: 600; }
.pub-offer-card:not(:has(.pub-offer-pic)) { grid-template-columns: 1fr; }
@media (max-width: 767.98px) { .pub-offer-card { grid-template-columns: 1fr; } .pub-offer-pic { max-height: 70vh; } .pub-offer-body { padding: 20px; } }

@media (prefers-reduced-motion: reduce) {
    body.pub::before { animation: none; }
    .pub-reveal { opacity: 1; transform: none; transition: none; }
    .pub-draw path, .pub-draw circle, .pub-draw ellipse, .pub-draw line, .pub-draw polyline { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; animation: none; }
    .pub-draw.is-sun, .pub-draw.is-fish, .pub-mb-border { animation: none; }
    .pub-yatra { display: none; }
    .pub-lift, .pub-btn { transition: none; }
}
