/*
Theme Name:        First Outbound (GeneratePress Child)
Theme URI:         https://paketoutboundmalang.com
Description:       Child theme custom untuk paketoutboundmalang.com. Halaman home redesign 2026 dengan template hand-coded untuk performa & SEO maksimal. Halaman lain tetap pakai parent GeneratePress.
Author:            First Outbound
Author URI:        https://paketoutboundmalang.com
Template:          generatepress
Version:           1.0.0
Text Domain:       firstoutbound-child
Tags:              custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, blog, e-commerce, news
*/

/*
 * Child theme styles berikut akan di-load setelah parent GeneratePress.
 * File ini hanya berisi reset/override umum.
 * CSS tokens (warna, typography, spacing) ada di assets/css/tokens.css
 * CSS halaman home ada di assets/css/home.css (load conditional di functions.php)
 */

/* ============================================================ */
/*  GLOBAL OVERRIDES (untuk semua halaman, hati-hati)           */
/* ============================================================ */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Image responsiveness default */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================================ */
/*  STICKY WHATSAPP BUTTON (FAB, sitewide — semua halaman)      */
/* ============================================================ */

.fo-sticky-wa {
    position: fixed;
    bottom: var(--fo-space-4, 16px);
    right: var(--fo-space-4, 16px);
    z-index: var(--fo-z-sticky, 9999);
    padding: var(--fo-space-3, 12px) var(--fo-space-5, 20px);
    background: var(--fo-color-wa, #25D366);
    color: #fff;
    border-radius: var(--fo-radius-full, 999px);
    font-weight: var(--fo-fw-semibold, 600);
    font-size: var(--fo-text-sm, 0.9rem);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--fo-space-2, 8px);
    transition: transform var(--fo-duration-base, 0.2s) var(--fo-ease-out, ease-out);
}
.fo-sticky-wa:hover {
    transform: scale(1.05);
    color: #fff;
    text-decoration: none;
}
.fo-sticky-wa:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.fo-sticky-wa svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
    .fo-sticky-wa {
        bottom: var(--fo-space-6, 32px);
        right: var(--fo-space-6, 32px);
        padding: var(--fo-space-4, 16px) var(--fo-space-6, 32px);
        font-size: var(--fo-text-base, 1rem);
    }
}

@media (max-width: 767px) {
    .fo-sticky-wa span { display: none; }
    .fo-sticky-wa {
        padding: var(--fo-space-3, 12px);
        width: 52px;
        height: 52px;
        justify-content: center;
        bottom: var(--fo-space-3, 12px);
        right: var(--fo-space-3, 12px);
    }
    .fo-sticky-wa svg { margin: 0; }
}
