html {
    scroll-behavior: smooth;
}

/* Offset for the header (so the menu doesn't cover the title) */
#services {
    scroll-margin-top: 100px;
}

/* --- 1. GLOBAL IDENTITY --- */
:root { 
    --juta-blue: #1a2a6c; 
    --juta-gold: #f39c12; 
    --juta-bg: #f8f9fa; 
}

.juta-page-wrapper { font-family: 'Segoe UI', Roboto, sans-serif; color: #333; max-width: 1200px; margin: 0 auto; padding: 20px; }

/* --- 2. PROTECTION STYLES --- */
/* Default: Hide buttons for guests */
.single_add_to_cart_button, .add_to_cart_button, .ajax_add_to_cart, .woocommerce-Price-amount, .price { 
    display: none !important; 
}

/* Force display for logged-in/verified users (Overriding theme mobile hide logic) */
.logged-in .single_add_to_cart_button, 
.logged-in .add_to_cart_button, 
.logged-in .ajax_add_to_cart { 
    display: inline-block !important; 
    visibility: visible !important;
    opacity: 1 !important;
}

.juta-locked-msg {
    background: #fff9e6; color: #d35400; padding: 8px 12px; border-radius: 6px;
    font-weight: bold; font-size: 0.9rem; border: 1px solid var(--juta-gold); display: inline-block; margin-bottom: 10px;
}
.juta-login-prompt-btn {
    display: block; background-color: var(--juta-blue); color: #ffffff !important; padding: 10px;
    text-align: center; border-radius: 5px; text-decoration: none; font-weight: bold; margin-top: 10px; font-size: 0.85rem;
}

/* --- 3. FRONT PAGE: HERO & 6-BOX GRID --- */
.juta-hero {
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url('https://juta.my/wp-content/uploads/hero-industrial.jpg'); 
    background-size: cover; background-position: center; color: white; text-align: center; padding: 100px 20px; border-radius: 0 0 40px 40px; margin-bottom: 40px;
}
.juta-hero h1 { font-size: 2.8rem; font-weight: 800; max-width: 900px; margin: 0 auto 20px; line-height: 1.2; }
.cta-group .btn-primary { background: var(--juta-gold); color: #fff !important; padding: 15px 30px; border-radius: 5px; font-weight: bold; text-decoration: none; display: inline-block; margin: 10px; }
.cta-group .btn-secondary { border: 2px solid #fff; color: #fff !important; padding: 13px 30px; border-radius: 5px; font-weight: bold; text-decoration: none; display: inline-block; margin: 10px; }

.juta-services-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; 
    max-width: 1200px; margin: -60px auto 60px; padding: 0 20px; 
}
.service-box { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); text-align: center; }
.s-icon { font-size: 2.5rem; display: block; margin-bottom: 15px; }

/* --- 4. CONTACT & OTHER COMPONENTS --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.wa-link { 
    color: #25d366 !important; 
    font-weight: bold; 
    text-decoration: none; 
    display: inline-block; 
    margin-top: 5px;
}
.juta-reg-link { margin-top: 20px; padding: 15px; background: #f8f9fa; border: 1px dashed var(--juta-blue); text-align: center; border-radius: 5px; }

/* --- 5. MOBILE RESPONSIVE --- */
@media (max-width: 992px) { 
    .juta-services-grid { grid-template-columns: repeat(2, 1fr); } 
}

@media (max-width: 768px) { 
    .juta-services-grid, .contact-grid { grid-template-columns: 1fr; }
    .juta-hero h1 { font-size: 2.1rem; }
    
    /* Mobile-Specific WhatsApp Adjustment */
    .wa-tooltip { display: none !important; } 
    
    .juta-wa-float { 
        /* Bumping it up to 90px to clear the WooCommerce sticky footer */
        bottom: 90px !important; 
        right: 20px !important; 
        width: 55px !important; 
        height: 55px !important; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    }
}

/* --- 6. FLOATING WHATSAPP BUTTON --- */
.juta-wa-float {
    position: fixed !important; 
    width: 60px; 
    height: 60px; 
    bottom: 30px; 
    right: 30px;
    background-color: #25d366 !important; 
    color: #FFF !important; 
    border-radius: 50px !important; 
    text-align: center;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3) !important; 
    z-index: 999999 !important; /* Extremely high to bypass theme mobile footers */
    display: flex !important;
    align-items: center !important; 
    justify-content: center !important; 
    transition: all 0.3s ease;
    animation: juta-pulse 2s infinite;
}

.juta-wa-float:hover { 
    transform: scale(1.1); 
    background-color: #128c7e !important; 
}

.wa-icon { 
    width: 34px !important; 
    height: 34px !important; 
    fill: white !important;
    display: block !important;
}

.wa-tooltip {
    position: absolute; 
    right: 75px; 
    background: #1a2a6c; 
    color: white;
    padding: 8px 15px; 
    border-radius: 5px; 
    font-size: 13px; 
    font-weight: bold;
    white-space: nowrap; 
    opacity: 0; 
    transition: 0.3s; 
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.juta-wa-float:hover .wa-tooltip { 
    opacity: 1; 
    right: 80px; 
}

/* Subtle Pulse Animation */
@keyframes juta-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- 7. GOLD MENU BUTTON (ACCELERATED) --- */
@media (min-width: 992px) {
    /* Target the link specifically inside our custom class */
    .menu-item-register a {
        background-color: var(--juta-gold) !important;
        color: #ffffff !important;
        padding: 12px 22px !important;
        border-radius: 6px !important;
        margin-left: 15px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3) !important;
        line-height: 1 !important;
        display: inline-block !important;
    }

    .menu-item-register a:hover {
        background-color: #e67e22 !important; /* Slightly darker orange-gold */
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(243, 156, 18, 0.5) !important;
        color: #ffffff !important;
    }
    
    /* Remove the default underline hover effect from themes */
    .menu-item-register a::after {
        display: none !important;
    }
}

/* On Mobile: Keep it looking like a link so it doesn't break the layout */
@media (max-width: 991px) {
    .menu-item-register a {
        color: var(--juta-gold) !important;
        font-weight: bold !important;
    }
}
