/*
Theme Name: Serat Nusa
Theme URI: https://seratnusa.com
Author: Serat Nusa
Author URI: https://seratnusa.com
Description: Custom theme for Serat Nusa — handcrafted banana fiber products from Lampung, Indonesia. Built for Elementor Pro.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seratnusa
*/

/* ═══════════════════════════════════════════════
   SERAT NUSA — GLOBAL DESIGN SYSTEM
   ═══════════════════════════════════════════════ */

/* ─── COLOR TOKENS ─── */
:root {
    /* Brand */
    --sn-terracotta: #D25F2A;
    --sn-terracotta-hover: #B8501F;
    --sn-sage: #4A5D23;
    --sn-sage-light: rgba(74, 93, 35, 0.12);
    --sn-gold: #C4A265;
    --sn-charcoal: #333333;

    /* Backgrounds */
    --sn-warm-white: #FFFAF5;
    --sn-linen: #FFFAF5;
    --sn-warm-tint: #F5EDE4;
    --sn-card-bg: #FFFFFF;

    /* Text */
    --sn-text-primary: #333333;
    --sn-text-muted: #666666;
    --sn-text-light: #999999;

    /* UI */
    --sn-border: rgba(51, 51, 51, 0.06);
    --sn-border-medium: rgba(51, 51, 51, 0.1);
    --sn-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
    --sn-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --sn-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --sn-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.1);
    --sn-radius-sm: 8px;
    --sn-radius-md: 12px;
    --sn-radius-lg: 16px;
    --sn-radius-xl: 20px;

    /* WhatsApp */
    --sn-whatsapp: #25D366;
}


/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--sn-warm-white);
    color: var(--sn-text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}


/* ─── TYPOGRAPHY ─── */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'DM Serif Display', serif;
    color: var(--sn-charcoal);
    line-height: 1.2;
}

.sn-section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sn-sage);
    margin-bottom: 12px;
}

.sn-section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 38px;
    color: var(--sn-charcoal);
    margin-bottom: 14px;
}

.sn-section-desc {
    font-size: 15px;
    color: var(--sn-text-muted);
    line-height: 1.7;
    max-width: 600px;
}


/* ─── BUTTONS ─── */
.sn-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--sn-terracotta);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sn-btn-primary:hover {
    background: var(--sn-terracotta-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(210, 95, 42, 0.3);
}

.sn-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--sn-linen);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sn-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.sn-btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--sn-charcoal);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sn-btn-dark:hover {
    background: #222;
    transform: translateY(-1px);
}


/* ─── BADGES ─── */
.sn-badge {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 6px;
}

.sn-badge-preorder {
    background: var(--sn-terracotta);
    color: #fff;
}

.sn-badge-ships {
    background: rgba(51, 51, 51, 0.7);
    color: #fff;
    backdrop-filter: blur(4px);
}

.sn-badge-category {
    background: var(--sn-sage-light);
    color: var(--sn-sage);
}


/* ─── CARDS ─── */
.sn-card {
    background: var(--sn-card-bg);
    border-radius: var(--sn-radius-lg);
    border: 1px solid var(--sn-border);
    overflow: hidden;
    transition: all 0.3s;
}

.sn-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sn-shadow-hover);
}


/* ─── FORMS ─── */
.sn-input,
.sn-select,
.sn-textarea {
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    padding: 12px 14px;
    border: 1.5px solid var(--sn-border-medium);
    border-radius: var(--sn-radius-sm);
    background: #fff;
    color: var(--sn-text-primary);
    transition: border-color 0.2s;
    outline: none;
}

.sn-input:focus,
.sn-select:focus,
.sn-textarea:focus {
    border-color: var(--sn-terracotta);
}

.sn-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sn-text-primary);
    margin-bottom: 6px;
}


/* ─── SCROLL REVEAL ANIMATION ─── */
.sn-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.sn-reveal.sn-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ─── WHATSAPP FLOATING BUTTON ─── */
.sn-wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sn-wa-float .sn-wa-pill {
    background: var(--sn-whatsapp);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.sn-wa-float:hover .sn-wa-pill {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.sn-wa-float .sn-wa-icon {
    width: 22px;
    height: 22px;
}

.sn-wa-float .sn-wa-pulse {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.2);
    animation: snWaPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes snWaPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.4);
        opacity: 0;
    }
}


/* ─── MOBILE PRE-ORDER BAR ─── */
.sn-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--sn-charcoal);
    padding: 12px 20px;
    z-index: 200;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sn-mobile-bar .sn-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sn-mobile-bar .sn-bar-text {
    color: var(--sn-linen);
    font-size: 12px;
}

.sn-mobile-bar .sn-bar-text strong {
    color: var(--sn-gold);
    display: block;
    font-size: 13px;
}

.sn-mobile-bar .sn-bar-btn {
    background: var(--sn-terracotta);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════ */

/* ─── TABLET (≤900px) ─── */
@media (max-width: 900px) {
    .sn-mobile-bar {
        display: block;
    }

    body {
        padding-bottom: 60px;
    }

    .sn-wa-float {
        bottom: 76px;
        right: 16px;
    }

    .sn-wa-float .sn-wa-pill span {
        display: none;
    }

    .sn-wa-float .sn-wa-pill {
        padding: 14px;
        border-radius: 50%;
    }

    .sn-section-title {
        font-size: 30px;
    }
}

/* ─── PHONE (≤600px) ─── */
@media (max-width: 600px) {
    .sn-section-title {
        font-size: 24px;
    }

    .sn-section-desc {
        font-size: 13px;
    }

    .sn-btn-primary,
    .sn-btn-outline,
    .sn-btn-dark {
        padding: 12px 20px;
        font-size: 13px;
    }

    .sn-mobile-bar {
        padding: 10px 16px;
    }

    .sn-mobile-bar .sn-bar-text {
        font-size: 11px;
    }

    .sn-mobile-bar .sn-bar-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .sn-wa-float {
        bottom: 68px;
        right: 12px;
    }
}