/*
 Theme Name:   Pimpalpan Pictures
 Theme URI:    https://pimpalpanpictures.com
 Description:  Astra Child Theme for Pimpalpan Pictures. Dark-mode foundation, bento-grid hero, marquees, scroll animations, and Spectra block overrides — all based on the Monas Designer template.
 Author:       Pimpalpan Pictures
 Author URI:   https://pimpalpanpictures.com
 Template:     astra
 Version:      1.1.2
 Text Domain:  pimpalpan-child
*/


/* ===========================================
   1. DARK FOUNDATION
   =========================================== */

body {
    background-color: #0A0A0A;
    color: #999;
}

/* Strip Astra's default white article/comment backgrounds */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .comments-area,
.ast-separate-container .ast-comment-list li.depth-1,
.ast-separate-container .comment-respond {
    background: transparent;
    padding: 0;
}
.ast-separate-container .site-main > .ast-row {
    padding: 0;
}

/* Astra default content area — remove white bg */
.ast-plain-container,
.ast-page-builder-template .site-content > .ast-container {
    background: transparent;
}

/* Dark inputs globally */
input, textarea, select {
    background-color: #161616;
    border: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    border-radius: 8px;
}
input:focus, textarea:focus, select:focus {
    border-color: #C4F000;
    outline: none;
}


/* ===========================================
   2. SECTION BACKGROUNDS & UTILITIES
   =========================================== */

.section-dark,
.heading-bg   { background-color: #0A0A0A; }
.section-darker,
.heading-2-bg { background-color: #161616; }

/* Accent */
.accent    { color: #C4F000; }
.accent-bg { background-color: #C4F000; color: #0A0A0A; }

/* Border & Radius */
.br-10 { border-radius: 10px; }
.br-20 { border-radius: 20px; }
.custom-border { border: 1px solid rgba(32, 32, 32, 0.8); }

/* Full-width section helper (use on Spectra Container) */
.full-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}


/* ===========================================
   3. HERO BANNER — BENTO GRID
   =========================================== */

.hero-heading h1 {
    font-size: clamp(40px, 8vw, 120px);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    line-height: 1;
    margin-bottom: 60px;
}

/* Bento card base */
.bento-card {
    background-color: #161616;
    border: 1px solid rgba(32, 32, 32, 0.8);
    border-radius: 20px;
    padding: 25px 30px;
    height: 100%;
}
.bento-card h6 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.bento-card p {
    font-size: 16px;
    color: #999;
    line-height: 1.6;
}

/* Bento grid layout (3-col: 25/50/25) */
.bento-grid {
    display: flex;
    gap: 20px;
    align-items: stretch;
}
.bento-grid__left  { flex: 0 0 25%; min-width: 0; }
.bento-grid__center { flex: 0 0 50%; min-width: 0; }
.bento-grid__right { flex: 0 0 25%; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Hero image with rounded corners */
.bento-grid__center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Spinning badge overlay on hero image */
@keyframes spin { to { transform: rotate(360deg); } }
.spin-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    animation: spin 10s linear infinite;
    pointer-events: none;
}

/* Social icon circles */
.social-icons {
    display: flex;
    gap: 10px;
}
.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.social-icons a:hover {
    background: #C4F000;
    color: #0A0A0A;
    border-color: #C4F000;
}


/* ===========================================
   4. BUTTONS
   =========================================== */

/* Outline / ghost button (main CTA) */
.wp-block-button.is-style-outline .wp-block-button__link,
.rr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    color: #fff;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.rr-btn:hover {
    background: #C4F000;
    color: #0A0A0A;
    border-color: #C4F000;
}

/* Lime filled button */
.btn-lime,
.wp-block-button.is-style-fill .wp-block-button__link {
    background: #C4F000;
    color: #0A0A0A;
    border: 1px solid #C4F000;
    border-radius: 30px;
    padding: 14px 32px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-lime:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background: #A8D000;
    border-color: #A8D000;
}

/* Circular arrow button */
.circle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
}
.circle-btn:hover {
    background: #C4F000;
    color: #0A0A0A;
    border-color: #C4F000;
}


/* ===========================================
   5. MARQUEE (stats, services, pricing, footer)
   =========================================== */

.marquee-wrap,
.stats-marquee {
    overflow: hidden;
    padding: 40px 0;
}
.marquee-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    align-items: center;
    animation: marquee-scroll 18s linear infinite;
}
.marquee-item {
    font-size: 72px;
    font-weight: 700;
    color: #C4F000;
    flex-shrink: 0;
}
.marquee-item.outline {
    color: transparent;
    -webkit-text-stroke: 1px #C4F000;
}

/* Stats marquee (brand section) */
.marquee-stat {
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}
.marquee-stat .accent { color: #C4F000; }

.marquee-logo {
    flex-shrink: 0;
}
.marquee-logo img {
    height: 40px;
    width: auto;
    border-radius: 10px;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause marquee on hover */
.marquee-wrap:hover .marquee-track,
.stats-marquee:hover .marquee-track {
    animation-play-state: paused;
}


/* ===========================================
   6. PROJECT GALLERY
   =========================================== */

.project-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: block;
}
.project-item img {
    transition: transform 0.5s ease;
    width: 100%;
    display: block;
}
.project-item:hover img {
    transform: scale(1.05);
}
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    opacity: 0;
    transition: opacity 0.35s ease;
}
.project-overlay h3 {
    font-size: 20px;
    color: #fff;
    margin: 0 0 4px;
}
.project-overlay span {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}
.project-item:hover .project-overlay {
    opacity: 1;
}


/* ===========================================
   7. SERVICE ROWS (expandable with hover image)
   =========================================== */

.service-row {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 30px 40px;
    transition: all 0.4s ease;
}
.service-row:first-child {
    border-top: 1px solid rgba(255,255,255,0.08);
}
.service-row-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}
.service-number {
    font-size: 18px;
    font-weight: 600;
    color: #C4F000;
    min-width: 50px;
}
.service-name {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
}
.service-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.service-row:hover .service-name a {
    color: #C4F000;
}
.service-image {
    width: 0;
    height: 100px;
    overflow: hidden;
    border-radius: 10px;
    transition: width 0.5s ease;
}
.service-image img {
    height: 100%;
    width: 200px;
    object-fit: cover;
}
.service-row:hover .service-image {
    width: 200px;
}
.service-arrow {
    margin-left: auto;
}


/* ===========================================
   8. TESTIMONIALS
   =========================================== */

.testimonial-section {
    position: relative;
    overflow: hidden;
}
.testimonial-section::before,
.testimonial-section::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(196, 240, 0, 0.08);
    pointer-events: none;
}
.testimonial-section::before { top: 15%; left: 10%; }
.testimonial-section::after  { bottom: 20%; right: 8%; }

/* Client avatar in testimonial */
.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}


/* ===========================================
   9. PRICING CARDS
   =========================================== */

.pricing-card {
    background: #0A0A0A;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: border-color 0.3s;
}
.pricing-card:hover {
    border-color: rgba(196, 240, 0, 0.25);
}
.pricing-card h2 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 0;
}
.pricing-card .price-period {
    color: #999;
    font-size: 16px;
}
.pricing-card .plan-name {
    font-size: 18px;
    color: #ccc;
    margin-top: 8px;
}
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}
.pricing-card li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #ccc;
    font-size: 15px;
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card .cta-btn {
    display: block;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 16px;
}
.pricing-card .cta-btn:hover {
    background: #C4F000;
    color: #0A0A0A;
    border-color: #C4F000;
}


/* ===========================================
   10. SCROLL ANIMATIONS (triggered by JS)
   =========================================== */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scale-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Triggered state */
.in-view {
    opacity: 1 !important;
    transform: none !important;
}

/* Stagger children (works for all animation types) */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.3s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-up, .fade-left, .fade-right, .scale-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .marquee-track { animation: none; }
    .spin-badge { animation: none; }
}


/* ===========================================
   11. SPECTRA BLOCK DARK-MODE OVERRIDES
   =========================================== */

/* Spectra Container — inherit dark bg */
.uagb-container-inner-blocks-wrap {
    color: #999;
}

/* Spectra Headings — white on dark */
.uagb-heading-text,
.uagb-heading-text a {
    color: #fff;
}

/* Spectra Info Box */
.uagb-ifb-content .uagb-ifb-title {
    color: #fff;
}
.uagb-ifb-content .uagb-ifb-desc {
    color: #999;
}

/* Spectra Separator */
.uagb-separator {
    border-color: rgba(255,255,255,0.08);
}

/* Spectra Slider navigation */
.uagb-slick-dots li button:before {
    color: rgba(255,255,255,0.3);
}
.uagb-slick-dots li.slick-active button:before {
    color: #C4F000;
}

/* Spectra Post Grid — dark cards */
.uagb-post__inner-wrap {
    background: #161616;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
}
.uagb-post__title a {
    color: #fff;
}
.uagb-post__excerpt {
    color: #999;
}


/* ===========================================
   12. ASTRA WIDGET & FOOTER OVERRIDES
   =========================================== */

/* Footer dark mode */
.site-footer,
.ast-footer-overlay {
    background-color: #0A0A0A;
}
.site-footer .widget-title {
    color: #fff;
}
.site-footer a {
    color: #999;
    transition: color 0.3s;
}
.site-footer a:hover {
    color: #C4F000;
}

/* Copyright bar (light bg variant from Monas) */
.ast-footer-copyright {
    background: #f8f8f8;
    color: #333;
    border-radius: 20px 20px 0 0;
}


/* ===========================================
   13. BACK TO TOP
   =========================================== */

.ast-scroll-top-icon {
    background-color: #C4F000 !important;
    color: #0A0A0A !important;
}


/* ===========================================
   14. RESPONSIVE
   =========================================== */

@media (max-width: 992px) {
    .hero-heading h1 {
        font-size: 60px;
    }
    .bento-grid {
        flex-direction: column;
    }
    .bento-grid__left,
    .bento-grid__center,
    .bento-grid__right {
        flex: 1 1 100%;
    }
    .service-name {
        font-size: 24px;
    }
    .service-row {
        padding: 20px;
    }
    .service-row-inner {
        gap: 20px;
    }
    .service-image { display: none; }
    .pricing-card h2 { font-size: 36px; }
}

@media (max-width: 575px) {
    .hero-heading h1 {
        font-size: 36px;
    }
    .marquee-item {
        font-size: 40px;
    }
    .marquee-stat {
        font-size: 24px;
    }
    .service-name {
        font-size: 20px;
    }
    .bento-card {
        padding: 20px;
    }
    .bento-card h6 {
        font-size: 18px;
    }
}

/* ===========================================
   15. SPECTRA BRUTE-FORCE DARK OVERRIDES
   =========================================== */

/* Aggressively strip inline light backgrounds from Spectra Containers */
.wp-block-uagb-container,
.uagb-container-inner-blocks-wrap {
    background-color: transparent !important;
    background: transparent !important;
}

/* Force specific classes to maintain dark/bento backgrounds regardless of inline styles */
.heading-bg {
    background-color: #0A0A0A !important;
}
.heading-2-bg, 
.bento-card {
    background-color: #161616 !important;
}

/* Ensure text stays visible */
.uagb-heading-text,
.uagb-desc-text,
p {
    color: inherit; 
}

/* ===========================================
   16. CUSTOM ANIMATION HOOKS (SOHAM MONAS HYBRID)
   =========================================== */

/* --- 1. Infinite Marquee --- */
/* Usage: Container > Custom HTML (<div class="monas-marquee-track"><h2>Text...</h2><img...></div>) */
.monas-marquee-container {
    overflow: hidden !important;
    white-space: nowrap !important;
    width: 100% !important;
}
.monas-marquee-track {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: marquee-scroll 15s linear infinite;
    width: fit-content;
}
.monas-marquee-track h2 {
    font-size: 5vw;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
}
.monas-marquee-track h2 span {
    color: #C4F000;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- 2. Service Row Expand Image on Hover --- */
/* Usage: Apply 'service-hover-row' to parent Spectra Row Container. 
   Apply 'service-hover-image' to the Image block inside it. */
.service-hover-row .wp-block-image.service-hover-image {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(0.95);
    margin: 0;
}
.service-hover-row:hover .wp-block-image.service-hover-image {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
    transform: scale(1);
}

/* --- 3. Project Grid Hover Overlays (WP Portfolio) --- */
.wp-portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.wp-portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.wp-portfolio-item:hover::after {
    opacity: 1;
}
.wp-portfolio-item .portfolio-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    text-align: center;
    width: 90%;
}
.wp-portfolio-item:hover .portfolio-content {
    top: 50%;
    opacity: 1;
}
