/* ═══════════════════════════════════════════════════════════
   PRAYAG PANDITS — GENERIC PAGE TEMPLATE
   Stage 1: Content Liberation

   Strips Elementor CSS/JS while rendering content beautifully.
   `display: contents` neutralizes Elementor wrapper divs.
   Actual content (h1-h6, p, img, ul) flows with our design system.

   Uses variables from ppn-design-system.css
   ═══════════════════════════════════════════════════════════ */

:root { --pg-ease: cubic-bezier(0.32, 0.94, 0.6, 1); }

/* ═══ BREADCRUMB ═══ */
.pg-breadcrumb {
    padding: 14px 0;
    border-bottom: 1px solid var(--ppn-border);
}
.pg-breadcrumb .ppn-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ppn-font-heading);
    font-size: 0.75rem;
    color: var(--ppn-text-muted);
    flex-wrap: wrap;
}
.pg-breadcrumb a {
    color: var(--ppn-text-muted);
    text-decoration: none;
    transition: color 150ms var(--pg-ease);
}
.pg-breadcrumb a:hover { color: var(--ppn-maroon); }
.pg-breadcrumb__current { color: var(--ppn-charcoal); font-weight: 500; }

/* ═══ PAGE HEADER (Non-Elementor only) ═══ */
.pg-header {
    padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px);
    background: var(--ppn-bg-cream);
    border-bottom: 1px solid var(--ppn-border);
}
.pg-header__title {
    font-family: var(--ppn-font-body);
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ppn-charcoal);
    margin: 0 0 12px;
    max-width: 720px;
}
.pg-header__excerpt {
    font-family: var(--ppn-font-body);
    font-size: 1.05rem;
    color: var(--ppn-text-muted);
    max-width: 600px;
    margin: 0;
    line-height: 1.6;
}

/* ═══ ELEMENTOR CONTENT — Render with Elementor's own layout ═══ */
/* Elementor CSS stays loaded — we only add our design system on top */
.pg-body--elementor {
    /* Elementor handles its own sections and columns */
}
/* Ensure Elementor content doesn't conflict with our header/footer */
.pg-body--elementor .elementor {
    /* Let Elementor do its thing */
}

/* ═══ NON-ELEMENTOR PROSE ═══ */
.pg-body--prose { padding: 40px 0 60px; }
.pg-prose {
    max-width: 720px;
    font-family: var(--ppn-font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ppn-text);
}
.pg-prose p { margin: 0 0 1.5em; }
.pg-prose h2 { font-family: var(--ppn-font-heading); font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; margin: 2.5em 0 0.8em; }
.pg-prose h3 { font-family: var(--ppn-font-heading); font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 700; margin: 2em 0 0.6em; }
.pg-prose a { color: var(--ppn-maroon); text-decoration: underline; text-underline-offset: 3px; }
.pg-prose ul, .pg-prose ol { padding-left: 24px; margin: 1em 0 1.5em; }
.pg-prose li { margin-bottom: 0.5em; line-height: 1.7; }
.pg-prose img { max-width: 100%; border-radius: var(--ppn-radius-sm); margin: 1.5em 0; }
.pg-prose blockquote { border-left: 3px solid var(--ppn-saffron); padding: 0 0 0 20px; margin: 1.5em 0; font-style: italic; color: var(--ppn-text-muted); }
.pg-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-family: var(--ppn-font-heading); font-size: 0.88rem; }
.pg-prose th, .pg-prose td { padding: 12px 16px; border-bottom: 1px solid var(--ppn-border); text-align: left; }
.pg-prose th { font-weight: 700; background: var(--ppn-bg-cream); }

/* ═══ BOTTOM CTA STRIP ═══ */
.pg-cta-strip {
    padding: 40px 0;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF9F0 100%);
    border-top: 1px solid rgba(150, 0, 0, 0.06);
}
.pg-cta-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.pg-cta-strip__text { flex: 1; min-width: 0; }
.pg-cta-strip__text h3 { font-family: var(--ppn-font-heading); font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; }
.pg-cta-strip__text p { font-family: var(--ppn-font-heading); font-size: 0.88rem; color: var(--ppn-text-muted); margin: 0; line-height: 1.5; }
.pg-cta-strip__actions { display: flex; gap: 14px; align-items: center; flex-shrink: 0; }
.pg-cta-strip__wa { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ppn-font-heading); font-size: 0.85rem; font-weight: 600; color: #25D366; text-decoration: none; }

/* ═══ SOCIAL PROOF ═══ */
.pg-proof { padding: 28px 0; border-top: 1px solid var(--ppn-border); }
.pg-proof__grid { display: flex; justify-content: space-between; padding: 20px 28px; background: linear-gradient(135deg, #FFF8F0 0%, #FDF5EC 100%); border: 1px solid #F0E0CC; border-radius: var(--ppn-radius-lg); }
.pg-proof__stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pg-proof__stat strong { font-family: var(--ppn-font-heading); font-size: 1.15rem; font-weight: 800; color: var(--ppn-maroon); }
.pg-proof__stat span { font-family: var(--ppn-font-heading); font-size: 0.68rem; color: var(--ppn-text-muted); text-align: center; }

/* ═══ MOBILE STICKY BAR ═══ */
.pg-mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--ppn-white); border-top: 1px solid var(--ppn-border); box-shadow: 0 -4px 20px rgba(0,0,0,0.08); padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); align-items: center; gap: 10px; }
.pg-mobile-bar__btn { flex: 1; padding: 14px; background: var(--ppn-maroon); color: #fff; font-family: var(--ppn-font-heading); font-size: 0.88rem; font-weight: 700; border-radius: var(--ppn-radius-sm); text-decoration: none; text-align: center; }
.pg-mobile-bar__btn:hover { background: var(--ppn-maroon-hover); color: #fff; }
.pg-mobile-bar__wa { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #25D366; color: #fff; border-radius: var(--ppn-radius-sm); flex-shrink: 0; text-decoration: none; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .pg-mobile-bar { display: flex; }
    .pg-article { padding-bottom: 72px; }
}
@media (max-width: 768px) {
    .pg-header { padding: 28px 0 20px; }
    .pg-header__title { font-size: 1.5rem; }
    .pg-body--prose { padding: 24px 0 40px; }
    .pg-cta-strip__inner { flex-direction: column; text-align: center; gap: 20px; }
    .pg-cta-strip__actions { justify-content: center; flex-wrap: wrap; }
    .pg-proof__grid { flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
    .pg-proof__stat { width: calc(50% - 6px); }
    .pg-liberated .elementor-widget { padding: 0 16px; }
}
@media (max-width: 480px) {
    .pg-header__title { font-size: 1.3rem; }
    .pg-liberated img {
        margin-left: -16px !important;
        margin-right: -16px !important;
        max-width: calc(100% + 32px) !important;
        border-radius: 0 !important;
    }
}
