/* Shivans — Premium Indian Spiritual / Puja Path / Dashakarma aesthetic */

:root {
    --font-heading: 'Cinzel Decorative', 'Cinzel', serif;
    --font-sacred: 'Playfair Display', 'Cinzel', serif;
    --vermillion-deep: #c62828;
    --temple-cream: #fff8e7;
    --rangoli-orange: #ff6f00;
}

/* —— Cosmic atmosphere layers —— */
.cosmic-overlay {
    background:
        radial-gradient(ellipse 80% 50% at 15% 10%,  rgba(201, 168, 76, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 70% 45% at 88% 15%,  rgba(201, 168, 76, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 95%,  rgba(201, 168, 76, 0.03) 0%, transparent 45%),
        radial-gradient(circle     at 50% 50%,        rgba(0, 0, 0, 0) 40%,    rgba(0,0,0,0.5) 100%);
}

[data-theme="light"] .cosmic-overlay {
    background:
        radial-gradient(ellipse 80% 50% at 15% 10%, rgba(255, 111, 0, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 70% 45% at 88% 15%, rgba(184, 134, 11, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 95%, rgba(139, 69, 19, 0.04) 0%, transparent 45%);
}

.sacred-atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.atmo-mandala {
    position: absolute;
    width: min(520px, 55vw);
    height: min(520px, 55vw);
    opacity: 0.12;
}

[data-theme="light"] .atmo-mandala,
[data-theme="light"] .atmo-yantra,
[data-theme="light"] .atmo-diya-float {
    opacity: 0.06;
}

.atmo-mandala--left {
    top: 8%;
    left: -12%;
}

.atmo-mandala--right {
    bottom: 5%;
    right: -14%;
}

.atmo-yantra {
    position: absolute;
    top: 42%;
    left: 50%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%);
    opacity: 0.35;
}

.mandala-spin-slow {
    animation: mandala-rotate 180s linear infinite;
    transform-origin: center;
}

.mandala-spin-reverse {
    animation: mandala-rotate 120s linear infinite reverse;
    transform-origin: center;
}

.mandala-petals {
    animation: mandala-rotate 90s linear infinite;
    transform-origin: center;
}

.yantra-pulse {
    animation: yantra-breathe 8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes yantra-breathe {
    0%, 100% { transform: scale(1); opacity: 0.18; }
    50% { transform: scale(1.06); opacity: 0.28; }
}

.atmo-rangoli-dots {
    display: none;
}

.atmo-rangoli-dots span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-primary);
    opacity: 0;
    animation: rangoli-twinkle 4s ease-in-out infinite;
}

.atmo-rangoli-dots span:nth-child(1) { top: 18%; left: 22%; animation-delay: 0s; }
.atmo-rangoli-dots span:nth-child(2) { top: 35%; left: 78%; background: var(--saffron); animation-delay: 0.7s; }
.atmo-rangoli-dots span:nth-child(3) { top: 62%; left: 12%; background: var(--marigold); animation-delay: 1.4s; }
.atmo-rangoli-dots span:nth-child(4) { top: 72%; left: 65%; animation-delay: 2.1s; }
.atmo-rangoli-dots span:nth-child(5) { top: 48%; left: 42%; width: 4px; height: 4px; animation-delay: 2.8s; }
.atmo-rangoli-dots span:nth-child(6) { top: 85%; left: 88%; background: var(--lotus-pink); animation-delay: 3.5s; }

@keyframes rangoli-twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.7; transform: scale(1.2); box-shadow: 0 0 12px var(--glow-color); }
}

.atmo-diya-float {
    position: absolute;
    width: 42px;
    height: 50px;
    opacity: 0.45;
    animation: diya-drift 14s ease-in-out infinite;
}

.atmo-diya-float--2 {
    top: 28%;
    right: 18%;
    animation-delay: -5s;
    animation-duration: 18s;
}

.atmo-diya-float:not(.atmo-diya-float--2) {
    bottom: 22%;
    left: 12%;
}

@keyframes diya-drift {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-18px) translateX(8px); }
    66% { transform: translateY(-8px) translateX(-6px); }
}

.atmo-flame {
    animation: flame-flicker 1.2s ease-in-out infinite;
    transform-origin: 24px 36px;
}

.atmo-flame-inner {
    animation: flame-flicker 0.9s ease-in-out infinite reverse;
    transform-origin: 24px 30px;
}

/* —— Header — handled by style.css .site-header —— */
.logo-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-decoration: none;
}

.logo-brand-img {
    height: 52px;
    width: auto;
    display: block;
}

.logo-text-sacred {
    display: block;
    font-family: var(--font-sacred);
    font-size: 0.62rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    line-height: 1.3;
    max-width: 220px;
}

[data-theme="light"] .logo-text-sacred {
    color: var(--text-secondary);
}

/* —— Hero premium —— */
.hero {
    position: relative;
}

.hero-sanskrit {
    font-family: var(--font-sacred);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--saffron);
    margin-bottom: 1rem;
    opacity: 0.95;
    font-style: italic;
    text-shadow: 0 0 24px rgba(255, 111, 0, 0.25);
}

/* Hero photo */
.hero-photo-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

.hero-photo-frame .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-photo-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    color: var(--gold-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: var(--font-heading);
    pointer-events: none;
}

/* Slider & zigzag photos */
.slide-photo-frame,
.zigzag-photo-frame {
    width: 100%;
    max-width: 280px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    margin: 0 auto;
}

.slide-photo-frame {
    max-width: 100%;
    min-height: 240px;
}

.slide-photo-frame img,
.zigzag-photo-frame img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.zigzag-photo-frame {
    min-height: 380px;
    max-width: none;
}

.zigzag-photo-frame img {
    min-height: 380px;
}

.slide-photo-frame:hover img,
.zigzag-photo-frame:hover img {
    transform: scale(1.04);
}

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-12px); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 1; }
}

.lotus-pulse {
    animation: lotus-bloom-pulse 4s ease-in-out infinite;
}

@keyframes lotus-bloom-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* —— Section titles —— */
.section-title {
    font-family: var(--font-heading);
    letter-spacing: 3px;
}

.gold-divider {
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    box-shadow: none;
}

.gold-divider::before {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-shadow: none;
}

/* —— Cards & slider —— */
.service-card,
.pillar-card,
.slide-card,
.review-card-glowing,
.product-card {
    background: linear-gradient(145deg, rgba(14, 13, 10, 0.96) 0%, rgba(8, 8, 8, 0.98) 100%);
    border: 1px solid rgba(201, 168, 76, 0.18);
    position: relative;
}

[data-theme="light"] .service-card,
[data-theme="light"] .pillar-card,
[data-theme="light"] .slide-card,
[data-theme="light"] .review-card-glowing,
[data-theme="light"] .product-card {
    background: linear-gradient(145deg, rgba(255, 255, 240, 0.95) 0%, rgba(253, 246, 227, 0.9) 100%);
}

.service-card::after,
.pillar-card::after {
    content: 'ॐ';
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 3rem;
    opacity: 0.04;
    pointer-events: none;
    font-family: serif;
}

.slide-card {
    background: linear-gradient(135deg, rgba(12, 11, 8, 0.96) 0%, rgba(6, 6, 6, 0.98) 50%, rgba(14, 13, 10, 0.96) 100%);
    border: 1px solid rgba(201, 168, 76, 0.18);
}

/* Zigzag visuals — photo only */
.zigzag-visual--premium {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-height: auto !important;
    overflow: visible;
}

/* —— Footer — clean divider, no yellow waves —— */
.footer-enhanced {
    position: relative;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 3rem 5% 2rem;
}

[data-theme="light"] .footer-enhanced {
    background: var(--bg-secondary);
}

.footer-top-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

/* Hide legacy curvy wave markup if present */
.footer-sacred-wave,
.footer-wave-divider,
.header-toran-strip {
    display: none !important;
}

.footer-link-group h5::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--btn-gradient);
    margin-top: 0.4rem;
    border-radius: 2px;
}

/* —— Trust strip & lead gen —— */
.trust-strip {
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.04), rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.04));
    border-image: linear-gradient(90deg, transparent, var(--gold-primary), transparent) 1;
}

.leadgen-section {
    background: linear-gradient(135deg, rgba(10, 9, 6, 0.8) 0%, rgba(5, 5, 5, 0.95) 100%);
    border-top:    1px solid rgba(201, 168, 76, 0.14);
    border-bottom: 1px solid rgba(201, 168, 76, 0.10);
}

.leadgen-form {
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: var(--shadow-premium), inset 0 0 60px rgba(255, 111, 0, 0.03);
}

/* —— Page hero banners (inner pages) —— */
.page-hero-banner {
    position: relative;
    overflow: hidden;
}

.page-hero-banner::before {
    content: '॥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 20vw, 14rem);
    opacity: 0.04;
    color: var(--gold-primary);
    pointer-events: none;
    font-family: serif;
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
    .mandala-spin-slow,
    .mandala-spin-reverse,
    .mandala-petals,
    .atmo-diya-float,
    .zodiac-ring-spin,
    .footer-sacred-wave svg,
    .footer-wave-layer-2,
    .footer-mandala-deco,
    .yantra-pulse,
    .atmo-rangoli-dots span {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .atmo-mandala { opacity: 0.08; width: 70vw; }
    .atmo-yantra,
    .atmo-diya-float { display: none; }
    .logo-text-sacred { font-size: 0.55rem; max-width: 160px; }
    .logo-brand-img { height: 44px; }
}

/* ==========================================================================
   SHIVANS ULTRA-PREMIUM REVAMP STYLING
   ========================================================================== */

/* Glowing Golden Borders & Rich Drop Shadows */
.service-card, .product-card, .team-card, .review-card-glowing, .pillar-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.4s ease,
                box-shadow 0.4s ease !important;
}

.service-card:hover, .product-card:hover, .team-card:hover, .review-card-glowing:hover, .pillar-card:hover {
    border-color: rgba(201, 168, 76, 0.75) !important;
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.9),
                0 0 40px rgba(201, 168, 76, 0.18),
                inset 0 0 20px rgba(201, 168, 76, 0.06) !important;
}

/* Enhanced Sacred Photo Frames with Auric Glows */
.hero-photo-frame, .slide-photo-frame, .zigzag-photo-frame, .about-img-wrapper {
    position: relative;
    border: 2px solid rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 
                0 0 35px rgba(212, 175, 55, 0.2), 
                0 0 60px rgba(255, 111, 0, 0.12) !important;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.5s ease !important;
}

.hero-photo-frame:hover, .slide-photo-frame:hover, .zigzag-photo-frame:hover, .about-img-wrapper:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 
                0 0 50px rgba(212, 175, 55, 0.45), 
                0 0 90px rgba(255, 111, 0, 0.25) !important;
}

/* Elegant Gold Shimmer Sweep Effect */
.btn-premium, .leadgen-submit-btn, .btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-premium::after, .leadgen-submit-btn::after, .btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: gold-shimmer-sweep 6s infinite linear;
}

@keyframes gold-shimmer-sweep {
    0% { left: -75%; }
    20% { left: 125%; }
    100% { left: 125%; }
}

/* Micro-animations and soft pulses */
.svg-diya-flame {
    animation: flame-flicker 1.5s ease-in-out infinite alternate;
}

.badge-spiritual-premium {
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.25);
    animation: pulse-badge 2s infinite alternate;
}

@keyframes pulse-badge {
    0% { box-shadow: 0 0 10px rgba(255, 179, 0, 0.15); }
    100% { box-shadow: 0 0 20px rgba(255, 179, 0, 0.45); }
}

/* ==========================================================================
   FIX: prevent horizontal overflow without breaking position:sticky
   ========================================================================== */
html {
    overflow-x: clip;
}
body {
    /* overflow-x:clip on html is sufficient — do NOT set overflow on body
       as it creates a scroll container and breaks sticky positioning */
    width: 100%;
}

/* site-nav font styling */
.site-nav li a {
    font-family: var(--font-body);
}
.site-nav li.active a {
    text-shadow: 0 0 18px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
    }
}

/* ==========================================================================
   PREMIUM SPIRITUAL TL;DR COMPONENT DESIGN
   ========================================================================== */
.spiritual-tldr {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 2.2rem 2.5rem;
    background: linear-gradient(135deg, rgba(20, 18, 14, 0.75) 0%, rgba(10, 8, 5, 0.95) 100%);
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium), 
                0 0 35px rgba(201, 168, 76, 0.08), 
                inset 0 0 25px rgba(201, 168, 76, 0.04);
    z-index: 5;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

[data-theme="light"] .spiritual-tldr {
    background: linear-gradient(135deg, rgba(253, 246, 227, 0.85) 0%, rgba(245, 237, 215, 0.95) 100%);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.spiritual-tldr:hover {
    border-color: rgba(201, 168, 76, 0.6);
    box-shadow: var(--shadow-premium), 
                0 0 45px rgba(201, 168, 76, 0.15), 
                inset 0 0 30px rgba(201, 168, 76, 0.06);
}

/* Background spin element */
.spiritual-tldr::before {
    content: '❂';
    position: absolute;
    bottom: -80px;
    left: -80px;
    font-size: 18rem;
    color: var(--gold-primary);
    opacity: 0.04;
    font-family: serif;
    pointer-events: none;
    animation: spin-zodiac 240s linear infinite;
    z-index: 1;
}

[data-theme="light"] .spiritual-tldr::before {
    opacity: 0.025;
}

/* Diya decoration */
.tldr-diya-container {
    position: absolute;
    top: -24px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    height: 60px;
    z-index: 10;
}

.tldr-flame {
    width: 14px;
    height: 24px;
    background: linear-gradient(to top, #ff3300 0%, #ff9900 35%, #ffffcc 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 10px rgba(255, 111, 0, 0.8), 
                0 0 20px rgba(255, 215, 0, 0.6), 
                0 0 35px rgba(255, 111, 0, 0.4);
    animation: flame-flicker 1.5s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

.tldr-diya-bowl {
    width: 44px;
    height: 18px;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 40%, #5c2c16 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 0 0 25px 25px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.tldr-diya-bowl::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5px;
    right: 5px;
    height: 4px;
    background: rgba(255, 179, 0, 0.25);
    border-radius: 50%;
}

.tldr-title {
    color: var(--gold-primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .tldr-title {
    color: var(--text-primary);
    text-shadow: none;
}

.tldr-intro {
    margin-bottom: 1.5rem;
    z-index: 2;
    position: relative;
    color: var(--text-secondary);
}

[data-theme="light"] .tldr-intro {
    color: var(--text-secondary);
}

.tldr-highlight {
    color: var(--gold-secondary);
    font-weight: 600;
}

[data-theme="light"] .tldr-highlight {
    color: var(--vermilion);
}

/* Two column list layout */
.tldr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 0.5rem;
    z-index: 2;
    position: relative;
}

.tldr-col {
    display: flex;
    flex-direction: column;
}

/* Add separator line on desktop */
@media (min-width: 769px) {
    .tldr-col:first-child {
        border-right: 1px dashed rgba(201, 168, 76, 0.18);
        padding-right: 2rem;
    }
}

.tldr-section-subtitle {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

/* Custom list items with stars */
.tldr-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.tldr-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.tldr-list li::before {
    content: '✦';
    position: absolute;
    left: 2px;
    top: 0;
    color: var(--gold-primary);
    font-size: 0.85rem;
    text-shadow: 0 0 6px var(--gold-primary);
}

[data-theme="light"] .tldr-list li::before {
    color: var(--saffron);
    text-shadow: none;
}

/* Custom numbered steps */
.tldr-steps {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
    counter-reset: tldr-counter;
}

.tldr-steps li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.tldr-steps li::before {
    content: counter(tldr-counter);
    counter-increment: tldr-counter;
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--saffron) 100%);
    color: #000;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.35);
}

[data-theme="light"] .tldr-steps li::before {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--vermilion) 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(198, 40, 40, 0.25);
}

/* Responsive grid stacking */
@media (max-width: 768px) {
    .spiritual-tldr {
        padding: 1.8rem 1.5rem;
        margin: 1.5rem auto;
    }
    
    .tldr-diya-container {
        top: -24px;
        right: 25px;
    }
    
    .tldr-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tldr-col:first-child {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px dashed rgba(201, 168, 76, 0.18);
        padding-bottom: 1.5rem;
    }
}



