/**
 * Sacred Hero — Global Premium Design System
 * One reusable hero component for: About, Aarti, Mantra, and all spiritual pages.
 * Master reference: aboutMaaBaglamukhi.php hero section
 */

/* ================================================================
   A. MAIN HERO WRAPPER
   ================================================================ */
.sacred-hero {
    position: relative;
    padding: 120px 0 80px;
    background:
        radial-gradient(circle at 15% 30%, rgba(212, 160, 23, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(212, 160, 23, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 50% 100%, rgba(212, 160, 23, 0.04) 0%, transparent 50%),
        linear-gradient(160deg, #2a0000 0%, #3a0505 30%, #4a0808 60%, #2D0101 100%);
    overflow: hidden;
    border-bottom: 4px solid rgba(212, 175, 55, 0.3);
}

/* Mandala texture overlay */
.sacred-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.12'/%3E%3Ccircle cx='100' cy='100' r='60' fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.1'/%3E%3Ccircle cx='100' cy='100' r='40' fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.08'/%3E%3C/svg%3E") repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Top fade overlay */
.sacred-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 180px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    z-index: 0;
}

/* All children above overlay */
.sacred-hero > * { position: relative; z-index: 1; }

/* ================================================================
   B. HERO CONTAINER
   ================================================================ */
.sacred-hero-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ================================================================
   C. HERO LAYOUT — 2-Column Grid
   ================================================================ */
.sacred-hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 50px;
}

/* Text / Content Side */
.sacred-hero-content {
    text-align: center;
}

.sacred-hero-content--left {
    text-align: left;
}

/* ================================================================
   D. HERO BADGE / EYEBROW
   ================================================================ */
.sacred-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid rgba(212, 160, 23, 0.35);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    color: #D4AF37;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.sacred-hero-badge i {
    font-size: 0.9rem;
}

/* ================================================================
   E. HERO TITLE
   ================================================================ */
.sacred-hero-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff8ef;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 50px rgba(212,160,23,0.08);
}

.sacred-hero-title--gold {
    background: linear-gradient(to bottom, #FFD700, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(255,215,0,0.35));
}

/* ================================================================
   F. HERO DESCRIPTION
   ================================================================ */
.sacred-hero-desc {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.75;
    color: rgba(255, 248, 240, 0.92);
    margin-bottom: 36px;
    max-width: 680px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.sacred-hero-content--center .sacred-hero-desc {
    margin-inline: auto;
}

/* ================================================================
   G. HERO CTA BUTTONS — Global Button System
   ================================================================ */
.sacred-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.sacred-hero-content--left .sacred-hero-buttons {
    justify-content: flex-start;
}

/* Primary Gold Button */
.sacred-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #D4AF37, #BF953F);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 6px 20px rgba(180, 130, 30, 0.3);
    white-space: nowrap;
}

.sacred-hero-btn-primary:hover {
    background: linear-gradient(135deg, #BF953F, #AA771C);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(180, 130, 30, 0.4);
    text-decoration: none;
}

/* WhatsApp Button */
.sacred-hero-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
    white-space: nowrap;
}

.sacred-hero-btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
    text-decoration: none;
}

/* Outline Gold Button */
.sacred-hero-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #D4AF37;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid rgba(212, 175, 55, 0.45);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.sacred-hero-btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
}

.sacred-hero-btn-outline i,
.sacred-hero-btn-primary i,
.sacred-hero-btn-whatsapp i {
    font-size: 1.05rem;
}

/* ================================================================
   H. HERO IMAGE CARD
   ================================================================ */
.sacred-hero-image {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    border: 2px solid rgba(212, 160, 23, 0.4);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(212, 160, 23, 0.12);
    background: #120000;
}

.sacred-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 40px rgba(212,160,23,0.05);
    pointer-events: none;
    z-index: 1;
}

.sacred-hero-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    min-height: 280px;
}

.sacred-hero-image--portrait img {
    aspect-ratio: 4 / 5;
    min-height: 350px;
}

/* ================================================================
   I. HERO STATS BAR — Trust Indicators
   ================================================================ */
.sacred-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 248, 240, 0.04);
    border: 1px solid rgba(212, 160, 23, 0.12);
    border-radius: 20px;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.sacred-hero-stat {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    min-width: 130px;
}

.sacred-hero-stat-icon {
    font-size: 1.6rem;
    color: #D4AF37;
    margin-bottom: 6px;
}

.sacred-hero-stat-number {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 244, 214, 0.85);
    white-space: nowrap;
    line-height: 1.3;
}

.sacred-hero-stat-divider {
    width: 1px;
    height: 45px;
    background: rgba(212, 175, 55, 0.18);
}

/* ================================================================
   J. BREADCRUMB WITHIN HERO
   ================================================================ */
.sacred-hero-breadcrumb {
    margin-bottom: 24px;
}

.sacred-hero-breadcrumb .breadcrumb {
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 8px;
}

.sacred-hero-breadcrumb .breadcrumb-item {
    font-size: 0.82rem;
    font-weight: 600;
}

.sacred-hero-breadcrumb .breadcrumb-item a {
    color: rgba(212, 160, 23, 0.7);
    text-decoration: none;
    transition: color 0.25s ease;
}

.sacred-hero-breadcrumb .breadcrumb-item a:hover {
    color: #FFD700;
}

.sacred-hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: rgba(212, 160, 23, 0.35);
}

.sacred-hero-breadcrumb .breadcrumb-item.active {
    color: #D4AF37;
}

/* ================================================================
   K. HERO OVERLAY DECORATION
   ================================================================ */
.sacred-hero-overlay {
    position: absolute;
    top: 50%;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.06) 0%, transparent 70%);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

/* ================================================================
   L. VARIANT: LIGHT HERO (Cream/White BG)
   ================================================================ */
.sacred-hero--light {
    background:
        linear-gradient(135deg, rgba(212, 160, 23, 0.04) 0%, rgba(255, 255, 255, 0.97) 100%),
        #faf6f0;
    border-bottom-color: rgba(212, 160, 23, 0.2);
}

.sacred-hero--light .sacred-hero-title {
    color: #3a0505;
    text-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.sacred-hero--light .sacred-hero-desc {
    color: rgba(60, 40, 20, 0.85);
    text-shadow: none;
}

.sacred-hero--light .sacred-hero-stats {
    background: rgba(212, 160, 23, 0.04);
    border-color: rgba(212, 160, 23, 0.15);
}

.sacred-hero--light .sacred-hero-stat-number {
    color: rgba(60, 40, 20, 0.8);
}

/* ================================================================
   M. VARIANT: HALF HERO (Compact — for interior pages)
   ================================================================ */
.sacred-hero--compact {
    padding: 90px 0 50px;
}

.sacred-hero--compact .sacred-hero-layout {
    gap: 40px;
    margin-bottom: 35px;
}

.sacred-hero--compact .sacred-hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
}

.sacred-hero--compact .sacred-hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    margin-bottom: 28px;
}

.sacred-hero--compact .sacred-hero-image img {
    aspect-ratio: 16 / 9;
    min-height: 220px;
}

/* ================================================================
   N. RESPONSIVE — TABLET
   ================================================================ */
@media (max-width: 992px) {
    .sacred-hero {
        padding: 100px 0 60px;
    }

    .sacred-hero-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 36px;
    }

    .sacred-hero-content {
        text-align: center;
    }

    .sacred-hero-content--left {
        text-align: center;
    }

    .sacred-hero-buttons {
        justify-content: center;
    }

    .sacred-hero-content--left .sacred-hero-buttons {
        justify-content: center;
    }

    .sacred-hero-desc {
        max-width: 100%;
        margin-inline: auto;
    }

    .sacred-hero-image {
        max-width: 520px;
        margin: 0 auto;
    }

    .sacred-hero-image img {
        aspect-ratio: 16 / 10;
        min-height: 240px;
    }

    .sacred-hero-stats {
        max-width: 100%;
        gap: 0;
        padding: 16px 16px;
    }

    .sacred-hero-stat {
        min-width: 50%;
        padding: 10px 8px;
    }

    .sacred-hero-stat-divider {
        display: none;
    }

    .sacred-hero-badge {
        font-size: 0.7rem;
        padding: 7px 18px;
    }
}

/* ================================================================
   O. RESPONSIVE — MOBILE
   ================================================================ */
@media (max-width: 576px) {
    .sacred-hero {
        padding: 85px 0 50px;
    }

    .sacred-hero-container {
        padding: 0 16px;
    }

    .sacred-hero-layout {
        gap: 28px;
        margin-bottom: 28px;
    }

    .sacred-hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 14px;
    }

    .sacred-hero-desc {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 24px;
    }

    .sacred-hero-badge {
        font-size: 0.65rem;
        padding: 6px 14px;
        letter-spacing: 2px;
    }

    .sacred-hero-btn-primary,
    .sacred-hero-btn-whatsapp,
    .sacred-hero-btn-outline {
        padding: 12px 20px;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    .sacred-hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .sacred-hero-image {
        border-radius: 20px;
        max-width: 100%;
    }

    .sacred-hero-image img {
        aspect-ratio: 16 / 9;
        min-height: 200px;
        border-radius: 18px;
    }

    .sacred-hero-stats {
        border-radius: 14px;
        padding: 14px 10px;
    }

    .sacred-hero-stat-icon {
        font-size: 1.3rem;
    }

    .sacred-hero-stat-number {
        font-size: 0.7rem;
    }

    .sacred-hero-breadcrumb .breadcrumb-item {
        font-size: 0.72rem;
    }
}

/* ================================================================
   P. LEGACY CLASS MAPPING — Backward compatibility
   ================================================================ */

/* Map old .hero-sacred to .sacred-hero */
.hero-sacred {
    position: relative;
    padding: 120px 0 80px;
    background:
        radial-gradient(circle at 15% 30%, rgba(212, 160, 23, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(212, 160, 23, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 50% 100%, rgba(212, 160, 23, 0.04) 0%, transparent 50%),
        linear-gradient(160deg, #2a0000 0%, #3a0505 30%, #4a0808 60%, #2D0101 100%);
    overflow: hidden;
    border-bottom: 4px solid rgba(212, 175, 55, 0.3);
}

/* Hero badge override */
.badge-gold-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid rgba(212, 160, 23, 0.35);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    color: #D4AF37;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Hero title premium */
.hero-title-premium {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 50px rgba(212,160,23,0.08);
}

/* Hero image frame */
.hero-image-frame {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    border: 2px solid rgba(212, 160, 23, 0.4);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(212, 160, 23, 0.12);
    background: #120000;
    padding: 4px;
}

.hero-image-frame img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    border-radius: 30px;
}

/* Hero buttons stack */
.hero-buttons-stack {
    gap: 10px;
}

/* Trust stats row — legacy mapping */
.trust-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 248, 240, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 20px;
    padding: 20px 30px;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.trust-stats-row .stat-item {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    min-width: 130px;
}

.trust-stats-row .stat-icon {
    font-size: 1.6rem;
    color: #D4AF37;
    margin-bottom: 6px;
}

.trust-stats-row .stat-number {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 244, 214, 0.85);
    white-space: nowrap;
    line-height: 1.3;
}

.trust-stats-row .stat-divider {
    width: 1px;
    height: 45px;
    background: rgba(212, 175, 55, 0.18);
}

@media (max-width: 991px) {
    .trust-stats-row { max-width: 100%; flex-wrap: wrap; gap: 0; padding: 16px 12px; }
    .trust-stats-row .stat-item { flex: 0 0 50%; padding: 10px 8px; }
    .trust-stats-row .stat-divider { display: none; }
}

/* ================================================================
   Q. MANTRA PAGE SPECIFIC — Fix white-on-cream contrast
   ================================================================ */
.sacred-hero--mantra-fix {
    background:
        linear-gradient(160deg, #2a0000 0%, #3a0505 30%, #4a0808 60%, #2D0101 100%),
        url('images/doodle2.png') repeat;
    background-size: 300px, 100%;
}

.sacred-hero--mantra-fix .sacred-hero-title {
    color: #fff8ef;
}

.sacred-hero--mantra-fix .sacred-hero-desc {
    color: rgba(255, 248, 220, 0.92);
}

/* Fix text contrast for pages that had .bg-cream or .bg-haldi */
.sacred-hero-text-contrast-fix {
    color: #fff8ef !important;
}

.sacred-hero-text-contrast-fix.sacred-hero-desc {
    color: rgba(255, 248, 220, 0.92) !important;
}

/* ================================================================
   R. AARTI PAGE HERO — Use same .hero-sacred structure
   ================================================================ */
.hero-aarti {
    padding: 120px 0 80px;
    background:
        radial-gradient(circle at 15% 30%, rgba(212, 160, 23, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(212, 160, 23, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 50% 100%, rgba(212, 160, 23, 0.04) 0%, transparent 50%),
        linear-gradient(160deg, #2a0000 0%, #3a0505 30%, #4a0808 60%, #2D0101 100%);
    overflow: hidden;
    border-bottom: 4px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.hero-aarti::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.12'/%3E%3Ccircle cx='100' cy='100' r='60' fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.1'/%3E%3Ccircle cx='100' cy='100' r='40' fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.08'/%3E%3C/svg%3E") repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.hero-aarti > .container { position: relative; z-index: 1; }