/* ===================================================================
   BKV Mission — Custom Styles
   Supplementary styles beyond Tailwind utility classes.
   =================================================================== */

/* ── Watermark / Mandala pattern ─────────────────────────────────── */
.watermark-mandala {
    background-image:
        radial-gradient(circle at center, transparent 0%, transparent 40%,
            rgba(26, 26, 144, 0.03) 40%, rgba(26, 26, 144, 0.03) 41%,
            transparent 41%, transparent 100%),
        radial-gradient(circle at center, transparent 0%, transparent 60%,
            rgba(26, 26, 144, 0.02) 60%, rgba(26, 26, 144, 0.02) 61%,
            transparent 61%, transparent 100%);
    background-size: 400px 400px;
    background-position: center;
}

/* ── Ashoka Chakra watermark (About page) ────────────────────────── */
.ashoka-watermark {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none" stroke="%231A1A90" stroke-width="2" opacity="0.05"><circle cx="50" cy="50" r="45"/><line x1="50" y1="5" x2="50" y2="95"/><line x1="5" y1="50" x2="95" y2="50"/><line x1="18.18" y1="18.18" x2="81.82" y2="81.82"/><line x1="18.18" y1="81.82" x2="81.82" y2="18.18"/><line x1="26.04" y1="9.75" x2="73.96" y2="90.25"/><line x1="9.75" y1="26.04" x2="90.25" y2="73.96"/><line x1="9.75" y1="73.96" x2="90.25" y2="26.04"/><line x1="26.04" y1="90.25" x2="73.96" y2="9.75"/><line x1="38.3" y1="6.52" x2="61.7" y2="93.48"/><line x1="6.52" y1="38.3" x2="93.48" y2="61.7"/><line x1="6.52" y1="61.7" x2="93.48" y2="38.3"/><line x1="38.3" y1="93.48" x2="61.7" y2="6.52"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ── Smooth scroll ───────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ── Fade-in animation for scroll reveals ────────────────────────── */
.bkv-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.bkv-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Custom logo in header — constrain size ──────────────────────── */
.custom-logo-link img {
    max-height: 48px;
    width: auto;
}

/* ── WordPress pagination styling ────────────────────────────────── */
.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links a {
    color: #554336;
    border: 1px solid rgba(26, 26, 144, 0.1);
    background: #fff;
}

.nav-links a:hover {
    background: #f3f4f5;
    color: #8f4e00;
}

.nav-links span.current {
    background: #E67E22;
    color: #fff;
    border: 1px solid #E67E22;
}

/* ── Gallery grid ────────────────────────────────────────────────── */
.bkv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.bkv-gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bkv-gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0, 0, 128, 0.12);
}

/* ── Blog post content styling ───────────────────────────────────── */
.bkv-post-content {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #191c1d;
}

.bkv-post-content h2,
.bkv-post-content h3,
.bkv-post-content h4 {
    font-family: 'Noto Serif', serif;
    color: #191c1d;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.bkv-post-content h2 { font-size: 28px; font-weight: 600; }
.bkv-post-content h3 { font-size: 22px; font-weight: 600; }
.bkv-post-content h4 { font-size: 18px; font-weight: 600; }

.bkv-post-content p {
    margin-bottom: 1.5em;
}

.bkv-post-content blockquote {
    border-left: 4px solid #E67E22;
    padding-left: 1rem;
    margin: 1.5em 0;
    font-style: italic;
    color: #554336;
}

.bkv-post-content img {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.bkv-post-content a {
    color: #8f4e00;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bkv-post-content a:hover {
    color: #E67E22;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDES
   Uses `body` parent for (0,1,1) specificity to reliably override
   Tailwind CDN utilities (0,1,0) at all breakpoints.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Mobile  (< 768px) ──────────────────────────────────────────── */
@media (max-width: 767px) {

    /* Section vertical padding: 80px → 40px */
    body .py-section-padding  { padding-top: 2.5rem;  padding-bottom: 2.5rem; }
    body .pt-section-padding  { padding-top: 2.5rem; }
    body .pb-section-padding  { padding-bottom: 2.5rem; }

    /* Section margins: 80px → 40px */
    body .mt-section-padding  { margin-top: 2.5rem; }
    body .mb-section-padding  { margin-bottom: 2.5rem; }

    /* Grid / flex gaps: 80px → 32px */
    body .gap-section-padding { gap: 2rem; }

    /* Hero min-height — shorter on phones */
    body .min-h-\[80vh\]      { min-height: 60vh; }

    /* Headline font sizes — prevent overflow on narrow screens */
    body .text-display-lg     { font-size: 2rem;   line-height: 2.5rem; }
    body .text-headline-md    { font-size: 1.5rem; line-height: 2rem; }

    /* Form card — reduce inner padding on phones */
    body #bkv-membership-form { padding: 1.25rem; }

    /* Step indicator connector lines — shrink on phones */
    body .bkv-step-connector  { width: 2rem; }

    /* Footer brand title — smaller on mobile */
    body footer .font-headline-md {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    /* Images — prevent breaking out of containers */
    body main img             { max-width: 100%; height: auto; }
}

/* ── Tablet  (768px – 1023px) ───────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Tighten section padding slightly */
    body .py-section-padding  { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    body .gap-section-padding { gap: 2.5rem; }
    body .mt-section-padding  { margin-top: 3rem; }
    body .mb-section-padding  { margin-bottom: 3rem; }

    /* Nav: tighten item spacing so everything fits at 768px */
    body #global-nav .space-x-6 > * + * { margin-left: 0.75rem; }
}


.bkv-post-content ul,
.bkv-post-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.bkv-post-content li {
    margin-bottom: 0.5em;
}

/* ── Sticky CTA on mobile ────────────────────────────────────────── */
@media (max-width: 767px) {
    .bkv-mobile-sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 40;
        padding: 12px 24px;
        background: rgba(248, 249, 250, 0.95);
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(26, 26, 144, 0.1);
    }
}

/* ── WordPress admin bar offset ──────────────────────────────────── */
.admin-bar #global-nav {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar #global-nav {
        top: 46px;
    }
}
