/*
Theme Name: GeneratePress Child - Baleswa
Description: Child theme untuk Baleswa Landing Page dengan desain khusus
Author: Baleswa Team
Template: generatepress
Version: 1.0.0
*/

/* ===== CHILD THEME STYLES ===== */

/* Import parent theme styles (handled by functions.php) */

/* ===== BALESWA SPECIFIC OVERRIDES ===== */

/* Ensure no horizontal scroll */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Override GeneratePress constraints for Baleswa page */
.custom-baleswa-page .site-header,
.custom-baleswa-page .main-navigation,
.custom-baleswa-page .site-footer,
.custom-baleswa-page .entry-header,
.custom-baleswa-page .page-header {
    display: none !important;
}

.custom-baleswa-page .site-content {
    padding: 0 !important;
    margin: 0 !important;
}

.custom-baleswa-page .content-area {
    width: 100% !important;
    margin: 0 !important;
    max-width: none !important;
}

.custom-baleswa-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

.custom-baleswa-page .main-title {
    display: none !important;
}

.custom-baleswa-page .wp-block-group {
    margin: 0 !important;
}

.custom-baleswa-page .container {
    max-width: none !important;
    padding: 0 !important;
}

.custom-baleswa-page .inside-article {
    padding: 0 !important;
    max-width: none !important;
}

/* Remove text decorations from all links */
.custom-baleswa-page a,
.custom-baleswa-page .no-underline {
    text-decoration: none !important;
}

/* Ensure Baleswa page takes full width */
.custom-baleswa-page {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
}

/* ===== BALESWA CUSTOM STYLES ===== */

/* CSS Variables */
:root {
    --whatsapp: #25D366;
    --whatsapp-dark: #1DA851;
    --primary-blue: #3B82F6;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --bg-light: #F8FAFC;
}

/* Animations */
@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(20px);
    } 
    to {
        opacity: 1; 
        transform: translateY(0);
    } 
}

@keyframes slideUp { 
    from { 
        opacity: 0; 
        transform: translateY(40px);
    } 
    to {
        opacity: 1; 
        transform: translateY(0);
    } 
}

@keyframes bounceGentle { 
    0%, 100% {
        transform: translateY(0);
    } 
    50% {
        transform: translateY(-8px);
    } 
}

@keyframes float { 
    0%, 100% {
        transform: translateY(0);
    } 
    50% {
        transform: translateY(-20px);
    } 
}

@keyframes scroll { 
    0% {
        transform: translateX(0);
    } 
    100% {
        transform: translateX(-50%);
    } 
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1; 
    transform: translateY(0);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%); 
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); 
    transition: all 0.3s ease;
    color: white !important;
    text-decoration: none !important;
}

.btn-primary:hover {
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.btn-lihat-demo {
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
}

@media (min-width: 1024px) {
    .btn-lihat-demo {
        padding: 12px 16px;
        font-size: 1rem;
    }
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 50%, #16A34A 100%);
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Testimonial Slider */
.testimonial-wrapper { 
    overflow: hidden; 
}

.testimonial-track {
    display: inline-flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
    animation: scroll 40s linear infinite;
    padding: 4px 2px;
}

.testimonial-card { 
    min-width: 300px; 
}

.testimonial-wrapper:hover .testimonial-track {
    animation-play-state: paused;
}

/* Floating WhatsApp Button */
.fab-wa {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    text-decoration: none !important;
}

@supports (bottom: max(0px)) {
    .fab-wa {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
    }
}

.fab-wa__btn {
    width: 56px; 
    height: 56px;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--whatsapp) 0%, var(--whatsapp-dark) 100%);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
}

.fab-wa:hover .fab-wa__btn {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(37, 211, 102, 0.45);
}

.fab-wa__badge {
    position: absolute;
    right: -2px; 
    top: -2px;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    width: 20px; 
    height: 20px; 
    border-radius: 9999px;
    background: #ef4444; 
    color: #fff; 
    font: 700 12px/1 Inter, system-ui, sans-serif;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

.fab-wa__tooltip {
    position: absolute;
    right: 72px;
    top: 50%; 
    transform: translateY(-50%);
    background: #111827; 
    color: #fff;
    padding: 8px 12px; 
    border-radius: 12px;
    white-space: nowrap; 
    font: 500 14px/1.1 Inter, system-ui, sans-serif;
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.15s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.fab-wa:hover .fab-wa__tooltip { 
    opacity: 1; 
}

.fab-wa__tooltip::after {
    content: ""; 
    position: absolute; 
    left: 100%; 
    top: 50%; 
    transform: translateY(-50%);
    border: 6px solid transparent; 
    border-left-color: #111827;
}

/* Navbar */
.navbar-shrink {
    padding-top: 0.75rem; 
    padding-bottom: 0.75rem; 
    backdrop-filter: blur(12px); 
    background-color: rgba(255, 255, 255, 0.95); 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content:not(.hidden) {
    max-height: 200px;
}

.faq-toggle svg {
    transition: transform 0.3s ease;
}

.faq-toggle svg.rotate-180 {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 640px) {
    .fab-wa__btn { 
        width: 52px; 
        height: 52px; 
    }
    
    .fab-wa__tooltip { 
        display: none; 
    }
    
    .fab-wa { 
        bottom: 20px; 
        right: 20px; 
    }
    
    .btn-lihat-demo {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 8px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; 
        animation-iteration-count: 1 !important; 
        transition-duration: 0.01ms !important;
    }
    
    .floating-whatsapp {
        animation: none !important;
    }
    
    .testimonial-slider {
        animation: none !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only.focus:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Ensure no conflicting styles from parent theme */
.custom-baleswa-page .generate-header-widget,
.custom-baleswa-page .generate-header-widget-area,
.custom-baleswa-page .generate-navigation,
.custom-baleswa-page .generate-primary-navigation,
.custom-baleswa-page .generate-menu-bar {
    display: none !important;
}
