/*
Theme Name:   RURENT
Theme URI:    https://rurent.id
Description:  Apple-clean theme untuk RURENT — Platform Sewa Raket Padel. Customizer-driven (warna, logo, header/footer) + 5 widget Elementor untuk landing section. Sinkron palette dengan plugin RURENT Core.
Author:       RURENT Dev
Version:      3.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  rurent-theme
Tags:         custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════════════════════════════
   RURENT Theme — Apple-Clean Design System
   Palette tersinkron dengan plugin (rurent.css) supaya tampilan
   theme + plugin terlihat konsisten end-to-end.

   Catatan:
   - Variabel di :root bisa di-override oleh Customizer via inline style
     yang dicetak di header (lihat inc/customizer.php → output_css_vars()).
   - Selector menggunakan ID tema (.rurent-theme) untuk menghindari
     bentrok dengan plugin RURENT yang scoped ke .rurent-katalog dll.

   Index:
     1. Tokens & font
     2. Reset & base
     3. Container & helpers
     4. Header
     5. Footer
     6. Page content
     7. Lucide icon helper
     8. Elementor widget styles (Hero, Stats, Flow, USP, CTA)
     9. Responsive
   ═══════════════════════════════════════════════════════════════════ */

/* ─── 1. Tokens (sinkron dengan rurent.css plugin) ─────────────── */
:root {
    /* Backgrounds — RURENT warm sand */
    --rt-bg:           #ebe5dd;
    --rt-bg-alt:       #e0d9d0;
    --rt-surface:      #ebe5dd;
    --rt-surface-2:    #f0ebe4;
    --rt-surface-3:    #d6cfc6;

    /* Borders */
    --rt-border:       #e8e8ed;
    --rt-border-strong:#d1d1d6;

    /* Text */
    --rt-text:         #1d1d1f;
    --rt-text-2:       #3a3a3c;
    --rt-text-muted:   #6e6e73;
    --rt-text-sub:     #aeaeb2;

    /* Brand — biru Apple */
    --rt-primary:      #0071e3;
    --rt-primary-hover:#0077ed;
    --rt-primary-light:#e8f1fd;
    --rt-accent:       #0071e3;
    --rt-accent-hover: #0077ed;

    /* Hero — kontras tinggi (default: dark untuk hero) */
    --rt-hero-bg:      #1d1d1f;
    --rt-hero-text:    #ffffff;
    --rt-hero-accent:  #0071e3;

    /* Status */
    --rt-success:      #30d158;
    --rt-wa:           #25d366;
    --rt-wa-hover:     #1fb955;

    /* Radius */
    --rt-r-xs:   6px;
    --rt-r-sm:   8px;
    --rt-r-md:   12px;
    --rt-r-lg:   16px;
    --rt-r-xl:   20px;
    --rt-r-pill: 980px;

    /* Shadows */
    --rt-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --rt-shadow:    0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    --rt-shadow-md: 0 2px 8px rgba(0,0,0,.08), 0 8px 32px rgba(0,0,0,.06);

    /* Layout */
    --rt-container:  1200px;
    --rt-font:       -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
                     'Inter', 'Helvetica Neue', system-ui, sans-serif;
}

/* ─── 2. Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--rt-font);
    color: var(--rt-text);
    background: var(--rt-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Offset biar konten tidak ketutup fixed header */
    padding-top: var(--rt-header-height, 61px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--rt-primary); }

h1, h2, h3, h4, h5, h6 {
    color: var(--rt-text);
    letter-spacing: -0.3px;
    line-height: 1.2;
    font-weight: 600;
}

button { font-family: inherit; }

/* ─── 3. Container & helpers ───────────────────────────────────── */
.container,
.rt-container {
    width: 100%;
    max-width: var(--rt-container);
    margin: 0 auto;
    padding: 0 20px;
}

.rt-section { padding: 72px 0; }
.rt-section-tight { padding: 48px 0; }

.rt-section-header { text-align: center; margin-bottom: 36px; }
.rt-section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--rt-primary);
    margin-bottom: 10px;
}
.rt-section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
}
.rt-section-sub {
    font-size: 16px;
    color: var(--rt-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* ─── 4. Header ────────────────────────────────────────────────── */
/* ════ HEADER — variable-driven ════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99990;
    background: var(--rt-header-bg, rgba(255,255,255,.95));
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--rt-header-border, var(--rt-border));
    padding: var(--rt-header-pad-y, 14px) 0;
}

/* logo kiri — nav+cart+CTA rata kanan */
.header-inner {
    display: flex;
    align-items: center;
}
.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--rt-nav-gap, 8px);
}
/* header-right hanya tampil di mobile via @media */
.header-right {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Logo */
.site-logo {
    font-size: 19px;
    font-weight: 800;
    color: var(--rt-text);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.site-logo span { color: var(--rt-primary); }
.site-logo img { height: var(--rt-logo-height, 32px); width: auto; display: block; }
.site-logo:hover { color: var(--rt-text); }

/* Nav links */
.site-nav > a,
.site-nav .menu-item > a {
    text-decoration: none;
    font-size: var(--rt-nav-size, 14px);
    font-weight: var(--rt-nav-weight, 500);
    color: var(--rt-nav-color, var(--rt-text-2, #3a3a3c));
    padding: 8px 14px;
    border-radius: var(--rt-r-sm);
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}
.site-nav > a:hover,
.site-nav .menu-item > a:hover {
    color: var(--rt-nav-hover, var(--rt-text));
    background: var(--rt-surface-3, rgba(0,0,0,.05));
}

/* Cart badge */
.cart-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cart-nav-link .rt-icon svg { width: 16px; height: 16px; }
#rurent-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: var(--rt-r-pill);
    background: var(--rt-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* CTA Button — fully customiser-driven */
.nav-cta {
    background: var(--rt-cta-bg, var(--rt-primary)) !important;
    color: var(--rt-cta-color, #fff) !important;
    padding: var(--rt-cta-py, 9px) var(--rt-cta-px, 18px) !important;
    border-radius: var(--rt-cta-radius, 99px) !important;
    font-weight: var(--rt-cta-weight, 600) !important;
    font-size: var(--rt-cta-size, 14px) !important;
    transition: background .15s ease, transform .15s ease, opacity .15s ease !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-cta:hover {
    background: var(--rt-cta-hover, rgba(200,98,42,.82)) !important;
    color: var(--rt-cta-color, #fff) !important;
    transform: translateY(-1px);
}

/* WP nav menu reset */
.site-nav ul.menu,
.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--rt-nav-gap, 4px);
    padding: 0;
    margin: 0;
}
.site-nav .menu-item { display: inline-block; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 12px;
    margin: -12px -12px -12px 0;
    color: var(--rt-text);
    border-radius: var(--rt-r-sm);
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.nav-toggle:hover { background: var(--rt-surface-3, rgba(0,0,0,.05)); }
.nav-toggle:active { background: var(--rt-surface-3, rgba(0,0,0,.05)); opacity: 0.7; }
.nav-toggle svg { display: block; width: 24px; height: 24px; pointer-events: none; color: var(--rt-primary); }

/* Sembunyiin tombol X di desktop — hanya muncul di mobile via media query */
.nav-drawer-close { display: none; }

/* Drawer footer (logo+copy+social) — desktop: hidden, mobile: tampil di bawah CTA */
.nav-drawer-footer { display: none; }

/* ─── 5. Footer ────────────────────────────────────────────────── */
/* ════ FOOTER — variable-driven ════════════════════════════════ */
.footer-logo img { height: var(--rt-footer-logo-h, 28px) !important; width: auto; filter: brightness(0) invert(1) opacity(0.85); }
.footer-brand .footer-about { color: var(--rt-footer-text, #a1a1a6); }
.footer-brand .footer-extra-copy {
    color: var(--rt-footer-text, #a1a1a6);
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
}
.footer-col h4 { color: var(--rt-footer-heading, #fff) !important; }
.footer-col a { color: var(--rt-footer-link, #a1a1a6) !important; }
.footer-col a:hover { color: var(--rt-footer-link-hover, #fff) !important; }
.footer-social a {
    background: var(--rt-footer-social-bg, #2c2c2e) !important;
    color: var(--rt-footer-social-color, #fff) !important;
}
.footer-social a:hover {
    background: var(--rt-primary) !important;
    color: #fff !important;
}
.footer-social svg { color: var(--rt-footer-social-color, #fff); fill: none; }

.site-footer {
    background: var(--rt-footer-bg, #264349);
    color: var(--rt-footer-text, rgba(255,255,255,.55));
    padding: 56px 0 24px;
    margin-top: 80px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    margin-bottom: 24px;
}
.footer-brand .site-logo {
    color: #fff;
    margin-bottom: 12px;
}
.footer-brand .site-logo span { color: var(--rt-primary); }
.footer-brand p {
    font-size: 13.5px;
    color: var(--rt-footer-text, rgba(255,255,255,.5));
    max-width: 300px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--rt-footer-heading, rgba(255,255,255,.4));
    margin-bottom: 14px;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.footer-col a {
    font-size: 13.5px;
    color: var(--rt-footer-link, rgba(255,255,255,.65));
    text-decoration: none;
    transition: color .15s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .4);
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .65);
    transition: all .15s ease;
}
.footer-social a:hover {
    background: var(--rt-primary);
    color: #fff;
}
.footer-social svg { width: 14px; height: 14px; }

/* ─── 6. Page content ─────────────────────────────────────────── */
.page-content {
    padding: 32px 0 64px;
    min-height: 50vh;
}
.page-content h1 {
    font-size: clamp(26px, 4vw, 38px);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.page-content p { margin-bottom: 14px; line-height: 1.65; color: var(--rt-text-2); }

/* ─── 7. Lucide icon helper ──────────────────────────────────── */
.rt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.rt-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════════════════════
   8. Elementor Widget Styles — Hero / Stats / Flow / USP / CTA
   ═══════════════════════════════════════════════════════════════════
   Setiap widget di-wrap dengan ID unik (#rurent-tw-{id}) supaya
   inline CSS variables bisa override per instance tanpa konflik.
   Kelas dasar: .rurent-theme-widget
   ═══════════════════════════════════════════════════════════════════ */

.rurent-theme-widget {
    font-family: var(--rt-font);
    color: var(--rt-text);
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.rt-hero {
    position: relative;
    background: var(--rt-hero-bg, var(--rt-text));
    color: var(--rt-hero-text, #fff);
    padding: 88px 0 64px;
    overflow: hidden;
    border-radius: 0;
}
.rt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}
.rt-hero .container { position: relative; z-index: 1; max-width: 820px; }

.rt-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 6px 14px;
    border-radius: var(--rt-r-pill);
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 22px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.rt-hero-eyebrow .rt-icon svg { width: 14px; height: 14px; }

.rt-hero-title {
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.4px;
    margin-bottom: 18px;
    color: #fff;
}
.rt-hero-title-accent {
    color: var(--rt-hero-accent, var(--rt-primary));
}

.rt-hero-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 32px;
    line-height: 1.55;
    max-width: 560px;
}

.rt-hero-cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.rt-btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rt-hero-accent, var(--rt-primary));
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--rt-r-pill);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: all .18s ease;
}
.rt-btn-hero-primary:hover {
    background: var(--rt-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 113, 227, .35);
}
.rt-btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .92);
    padding: 14px 24px;
    border-radius: var(--rt-r-pill);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .18);
    cursor: pointer;
    transition: all .18s ease;
}
.rt-btn-hero-secondary:hover {
    background: var(--rt-wa);
    border-color: var(--rt-wa);
    color: #fff;
}
.rt-btn-hero-secondary .rt-icon svg { width: 16px; height: 16px; }

/* ─── Stats Strip ─────────────────────────────────────────────── */
.rt-stats {
    background: var(--rt-bg-alt, var(--rt-surface-2));
    padding: 36px 0;
    border-bottom: 1px solid var(--rt-border);
}
.rt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    align-items: center;
}
.rt-stat {
    text-align: center;
    padding: 8px 16px;
    position: relative;
}
.rt-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--rt-border-strong);
}
.rt-stat strong {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: var(--rt-text);
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 4px;
}
.rt-stat span {
    display: block;
    font-size: 12px;
    color: var(--rt-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Hero with embedded stats (variant) */
.rt-hero .rt-stats-grid {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.rt-hero .rt-stat strong { color: #fff; }
.rt-hero .rt-stat span { color: rgba(255, 255, 255, .55); }
.rt-hero .rt-stat:not(:last-child)::after { background: rgba(255, 255, 255, .1); }

/* ─── Flow (How it works) ─────────────────────────────────────── */
.rt-flow {
    background: var(--rt-bg-alt, var(--rt-surface-2));
}
.rt-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}
.rt-flow-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(16.6% + 32px);
    right: calc(16.6% + 32px);
    height: 1px;
    background: var(--rt-border-strong);
    z-index: 0;
}
.rt-flow-step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.rt-flow-icon {
    width: 64px;
    height: 64px;
    background: var(--rt-surface);
    border: 1px solid var(--rt-border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--rt-flow-icon-color, var(--rt-primary));
    box-shadow: var(--rt-shadow-sm);
    transition: all .2s ease;
}
.rt-flow-icon svg { width: 26px; height: 26px; }
.rt-flow-step:hover .rt-flow-icon {
    transform: translateY(-2px);
    border-color: var(--rt-primary);
    box-shadow: var(--rt-shadow);
}
.rt-flow-num {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--rt-text-sub);
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.rt-flow-step h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--rt-text);
    letter-spacing: -0.2px;
}
.rt-flow-step p {
    font-size: 14px;
    color: var(--rt-text-muted);
    line-height: 1.55;
    max-width: 280px;
    margin: 0 auto;
}

/* ─── USP cards ───────────────────────────────────────────────── */
.rt-usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.rt-usp-card {
    padding: 24px 20px;
    background: var(--rt-surface);
    border: 1px solid var(--rt-border);
    border-radius: var(--rt-r-lg);
    box-shadow: var(--rt-shadow-sm);
    transition: all .2s ease;
}
.rt-usp-card:hover {
    border-color: var(--rt-border-strong);
    transform: translateY(-2px);
    box-shadow: var(--rt-shadow-md);
}
.rt-usp-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--rt-r-md);
    background: var(--rt-primary-light);
    color: var(--rt-usp-icon-color, var(--rt-primary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.rt-usp-icon svg { width: 22px; height: 22px; }
.rt-usp-card h3 {
    font-size: 15.5px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}
.rt-usp-card p {
    font-size: 13.5px;
    color: var(--rt-text-muted);
    line-height: 1.55;
}

/* ─── CTA banner ──────────────────────────────────────────────── */
.rt-cta {
    background: var(--rt-cta-bg, var(--rt-text));
    color: #fff;
    border-radius: var(--rt-r-xl);
    padding: 40px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.rt-cta-text { flex: 1; min-width: 240px; }
.rt-cta-text h3 {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
}
.rt-cta-text p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.55;
    max-width: 520px;
}
.rt-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rt-cta-btn-bg, var(--rt-primary));
    color: #fff;
    padding: 13px 26px;
    border-radius: var(--rt-r-pill);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
}
.rt-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 113, 227, .35);
    color: #fff;
}

/* ─── 9. Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .rt-usp-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 768px) {
    .rt-section, .rt-flow, .rt-cta-section { padding: 56px 0; }
    .rt-hero { padding: 64px 0 48px; }
    .rt-hero-title { letter-spacing: -1px; }
    .rt-hero-sub { font-size: 16px; }

    .rt-flow-steps { grid-template-columns: 1fr; gap: 24px; }
    .rt-flow-steps::before { display: none; }

    .rt-usp-grid { grid-template-columns: 1fr; gap: 12px; }

    /* ── Overlay gelap — nutupin area KIRI saja, bukan drawer */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: calc(100% - min(88vw, 360px)); /* lebar sisa setelah drawer */
        background: rgba(0, 0, 0, 0.55);
        z-index: 99991;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-overlay.is-open { display: block; }

    /* ── Drawer slide dari kanan — variable-driven ── */
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        max-height: 100dvh;
        width: 88vw;
        max-width: 360px;
        flex-direction: column;
        align-items: stretch;
        background: var(--rt-mob-nav-bg, var(--rt-surface));
        padding: 72px 0 32px;
        box-shadow: -6px 0 40px rgba(0,0,0,.25);
        z-index: 99992;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(105%);
        transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
        visibility: hidden;
        pointer-events: none;
        display: flex;
        margin-left: 0; /* reset margin-left:auto dari desktop */
    }
    .site-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    /* Tombol X */
    .nav-drawer-close {
        display: flex;
        position: absolute;
        top: 12px;
        right: 12px;
        background: var(--rt-surface-3, rgba(0,0,0,.07));
        border: 0;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 22px;
        line-height: 1;
        color: var(--rt-mob-nav-color, var(--rt-text));
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        z-index: 99993;
    }

    .site-nav ul.menu,
    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    /* Item menu mobile — semua dikontrol variabel */
    .site-nav > a,
    .site-nav .menu-item > a {
        padding: var(--rt-mob-nav-pad-y, 18px) var(--rt-mob-nav-pad-x, 24px);
        border-bottom: 1px solid var(--rt-mob-nav-border, var(--rt-border));
        font-size: var(--rt-mob-nav-size, 16px);
        color: var(--rt-mob-nav-color, var(--rt-text)) !important;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .site-nav .menu-item:last-child > a { border-bottom: 0; }

    /* CTA di drawer — specificity (0,2,1) supaya override .site-nav > a (0,1,1) */
    .nav-cta,
    .site-nav > a.nav-cta {
        margin: 16px var(--rt-mob-nav-pad-x, 24px) 0 !important;
        text-align: var(--rt-mob-cta-align, center) !important;
        display: block;
        color: #fff !important;
        border-bottom: 0 !important;
    }
    .site-nav > a.nav-cta:hover { color: #fff !important; }

    .nav-toggle {
        display: inline-flex;
        z-index: 99993;
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    .nav-toggle svg { width: 18px; height: 18px; }
    body.nav-is-open .nav-toggle {
        visibility: hidden;
        pointer-events: none;
    }

    /* ── Drawer footer: logo + copy + social ── */
    .nav-drawer-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px var(--rt-mob-nav-pad-x, 24px) 8px;
        margin-top: auto;   /* dorong ke bawah drawer */
        border-top: 1px solid var(--rt-mob-nav-border, var(--rt-border));
        gap: 12px;
    }
    .nav-drawer-logo img {
        height: 28px;
        width: auto;
    }
    .nav-drawer-logo {
        font-size: 18px;
        font-weight: 800;
        color: var(--rt-mob-nav-color, var(--rt-text));
        text-decoration: none;
        letter-spacing: -0.5px;
    }
    .nav-drawer-logo span { color: var(--rt-primary); }
    .nav-drawer-copy {
        font-size: 12px;
        line-height: 1.6;
        color: var(--rt-mob-nav-color, var(--rt-text));
        opacity: 0.6;
        margin: 0;
        max-width: 220px;
    }
    .nav-drawer-social {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .nav-drawer-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--rt-footer-social-bg, rgba(0,0,0,.08));
        color: var(--rt-mob-nav-color, var(--rt-text));
        transition: background .15s ease;
        text-decoration: none;
    }
    .nav-drawer-social a:hover { background: var(--rt-primary); color: #fff; }
    .nav-drawer-social svg { width: 15px; height: 15px; display: block; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { justify-content: center; text-align: center; }

    .rt-cta { padding: 32px 24px; flex-direction: column; align-items: flex-start; text-align: left; }

    .rt-stat:not(:last-child)::after { display: none; }
    .rt-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .rt-hero-cta-group { flex-direction: column; align-items: stretch; }
    .rt-btn-hero-primary,
    .rt-btn-hero-secondary { justify-content: center; width: 100%; }
    .footer-inner { grid-template-columns: 1fr; }
}

/* ── Cart di header mobile ──────────────────────────────────────── */
/* Desktop: cart tetap di dalam nav, header-right hidden */
.header-cart-mobile { display: none; }

@media (max-width: 768px) {
    /* Tampilkan header-right (cart+hamburger) di mobile */
    .header-right {
        display: flex;
        gap: 2px;
    }

    /* Sembunyiin cart dari dalam nav saat mobile */
    .site-nav .cart-nav-link { display: none !important; }

    /* Tampilkan cart di header-right, sejajar toggle */
    .header-cart-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        color: var(--rt-primary);
        text-decoration: none;
        width: 36px;
        height: 36px;
        border-radius: var(--rt-r-sm);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    .header-cart-mobile .rt-icon svg {
        width: 18px;
        height: 18px;
        display: block;
    }
    /* Badge count — pojok kanan atas icon */
    .header-cart-mobile #rurent-cart-badge-mobile {
        display: none; /* JS tampilkan kalau count > 0 */
        position: absolute;
        top: 6px;
        right: 4px;
        min-width: 15px;
        height: 15px;
        padding: 0 3px;
        border-radius: 99px;
        background: var(--rt-primary);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        line-height: 15px;
        text-align: center;
        pointer-events: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   10. Elementor Widget Overrides (per-instance via inline CSS vars)
   ═══════════════════════════════════════════════════════════════════
   Setiap widget RURENT Theme dirender dengan wrapper unik
   #rurent-tw-{id}. Style controls Elementor men-set variabel
   --rt-* di scope wrapper itu, dan rule berikut membaca variabel
   tsb dengan fallback ke default tema.
   ═══════════════════════════════════════════════════════════════════ */

/* Padding section dari kontrol */
.rurent-theme-widget.rt-section,
.rurent-theme-widget.rt-flow,
.rurent-theme-widget.rt-cta-section,
.rurent-theme-widget.rt-stats {
    padding-top: var(--rt-section-pad, 72px);
    padding-bottom: var(--rt-section-pad, 72px);
}
.rurent-theme-widget.rt-hero {
    padding-top: var(--rt-section-pad, 88px);
    padding-bottom: calc(var(--rt-section-pad, 64px) * 0.72);
}

/* Background section override */
.rurent-theme-widget.rt-flow,
.rurent-theme-widget.rt-stats,
.rurent-theme-widget.rt-section,
.rurent-theme-widget.rt-cta-section {
    background: var(--rt-section-bg, var(--rt-bg-alt, #f5f5f7));
}
.rurent-theme-widget.rt-section:not(.rt-flow):not(.rt-cta-section) {
    background: var(--rt-section-bg, var(--rt-bg, #fff));
}
.rurent-theme-widget.rt-hero {
    background: var(--rt-section-bg, var(--rt-hero-bg, #1d1d1f));
}

/* Text & heading override */
.rurent-theme-widget .rt-section-title,
.rurent-theme-widget .rt-cta-text h3,
.rurent-theme-widget .rt-flow-step h4,
.rurent-theme-widget .rt-usp-card h3 {
    color: var(--rt-heading-color, var(--rt-text));
}
.rurent-theme-widget .rt-section-sub,
.rurent-theme-widget .rt-flow-step p,
.rurent-theme-widget .rt-usp-card p {
    color: var(--rt-text-color, var(--rt-text-muted));
}
.rurent-theme-widget .rt-section-eyebrow {
    color: var(--rt-eyebrow-color, var(--rt-primary));
}

/* Icon override (USP, Flow) */
.rurent-theme-widget .rt-flow-icon,
.rurent-theme-widget .rt-usp-icon {
    color: var(--rt-icon-color, var(--rt-primary));
    background: var(--rt-icon-bg, var(--rt-surface));
}
.rurent-theme-widget .rt-usp-icon {
    background: var(--rt-icon-bg, var(--rt-primary-light));
}
.rurent-theme-widget .rt-icon svg {
    width: var(--rt-icon-size, 18px);
    height: var(--rt-icon-size, 18px);
}
.rurent-theme-widget .rt-flow-icon svg,
.rurent-theme-widget .rt-usp-icon svg {
    /* Lebih besar dari rt-icon umum karena ada di kartu */
    width: var(--rt-icon-size, 26px);
    height: var(--rt-icon-size, 26px);
}

/* Button override */
.rurent-theme-widget .rt-btn-hero-primary,
.rurent-theme-widget .rt-cta-btn {
    background: var(--rt-btn-bg, var(--rt-primary));
    color: var(--rt-btn-text, #fff);
    border-radius: var(--rt-btn-radius, var(--rt-r-pill));
}
.rurent-theme-widget .rt-btn-hero-primary:hover,
.rurent-theme-widget .rt-cta-btn:hover {
    background: var(--rt-btn-bg, var(--rt-primary-hover));
    filter: brightness(1.05);
}

/* Card override (USP) */
.rurent-theme-widget .rt-usp-card {
    background: var(--rt-card-bg, var(--rt-surface));
    border-color: var(--rt-card-border, var(--rt-border));
    border-radius: var(--rt-card-radius, var(--rt-r-lg));
}

/* CTA banner background */
.rurent-theme-widget.rt-cta-section .rt-cta {
    background: var(--rt-card-bg, var(--rt-text));
    border-radius: var(--rt-card-radius, var(--rt-r-xl));
}

/* ─── RURENT Design Polish ─────────────────────────────────────── */

/* Remove default WP list styles in footer/nav */
.footer-col ul, .site-nav ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-col ul li::before { display: none !important; }

/* Footer layout refinement */
.site-footer { font-size: 14px; letter-spacing: -0.1px; }
.footer-brand .site-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.6px; }
.footer-col h4 {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.4px !important;
    color: rgba(255,255,255,.35) !important;
    margin-bottom: 16px !important;
}
.footer-col a { font-size: 14px; color: rgba(255,255,255,.62) !important; transition: color .15s ease; line-height: 1; }
.footer-col a:hover { color: #fff !important; }
.footer-col ul { gap: 12px !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px; font-size: 12px; color: rgba(255,255,255,.28); }

/* Header nav link refinement */
.site-nav > a:not(.nav-cta), .site-nav .menu-item > a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: var(--rt-text-2);
}
.site-nav > a:not(.nav-cta):hover { color: var(--rt-primary); }

/* Nav CTA button polish */
.nav-cta { font-size: 13.5px !important; letter-spacing: -0.1px !important; box-shadow: 0 1px 3px rgba(0,113,227,.25) !important; }

/* Footer social icon polish */
.footer-social a {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.65);
    transition: background .15s ease, color .15s ease;
}
.footer-social a:hover { background: rgba(255,255,255,.16); color: #fff; }
.footer-social svg { width: 14px; height: 14px; display: block; }

/* Remove WP default bleed */
.site-footer .widget, .site-footer .wp-block-widget-area { all: unset; }
.page-content { min-height: 60vh; }

/* Smooth card hover */
.rt-usp-card { transition: transform .2s ease, box-shadow .2s ease; }
.rt-usp-card:hover { transform: translateY(-3px); }

/* ═══════════════════════════════════════════════════════════════════
   v3.1.1 — Button tap responsiveness (mobile)
   - touch-action: manipulation → hilangkan delay tap ~300ms
   - :active → feedback instan saat ditekan (terasa "smooth")
   - @media (hover:none) → reset efek :hover di layar sentuh biar tidak
     "nyangkut" setelah tap (penyebab terasa susah/dobel di HP)
   ═══════════════════════════════════════════════════════════════════ */
.rt-btn-hero-primary,
.rt-btn-hero-secondary,
.rt-cta-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.rt-btn-hero-primary:active,
.rt-btn-hero-secondary:active,
.rt-cta-btn:active {
    transform: translateY(0) scale(.97);
    transition-duration: .05s;
}
@media (hover: none) {
    .rt-btn-hero-primary:hover {
        background: var(--rt-hero-accent, var(--rt-primary));
        transform: none;
        box-shadow: none;
    }
    .rt-btn-hero-secondary:hover {
        background: rgba(255, 255, 255, .1);
        border-color: rgba(255, 255, 255, .18);
        color: rgba(255, 255, 255, .92);
    }
    .rt-cta-btn:hover {
        transform: none;
        box-shadow: none;
    }
}
