/* ═══════════════════════════════════════════
   OTAS USAMA Sirnarasa — Public CSS
   Branding: Merah Putih Elegan
═══════════════════════════════════════════ */

:root {
    --otas-green:        #c0152a;          /* merah utama */
    --otas-green-dark:   #8f0d1e;          /* merah gelap */
    --otas-green-light:  #fef0f2;          /* merah sangat muda */
    --otas-gold:         #c9933a;          /* emas hangat */
    --otas-gold-light:   #fdf5e8;          /* emas muda */
    --otas-text:         #1e293b;
    --otas-muted:        #64748b;
    --otas-border:       #e2e8f0;
    --otas-radius:       12px;
    --otas-shadow:       0 4px 24px rgba(0,0,0,.08);

    /* alias eksplisit untuk keterbacaan */
    --otas-red:          #c0152a;
    --otas-red-dark:     #8f0d1e;
    --otas-red-light:    #fef0f2;
}

/* ── Base ───────────────────────────────── */
* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--otas-text);
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navbar ─────────────────────────────── */
.otas-navbar {
    background: #fff;
    border-bottom: 2px solid var(--otas-red-light);
    padding: 10px 0;
    z-index: 1030;
}

.otas-navbar .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--otas-text);
    padding: 6px 12px !important;
    border-radius: 8px;
    transition: all .2s;
}

.otas-navbar .nav-link:hover,
.otas-navbar .nav-link.active {
    color: var(--otas-red);
    background: var(--otas-red-light);
}

.otas-navbar .dropdown-menu {
    font-size: 13px;
    border: 1px solid var(--otas-border);
    padding: 8px;
}

.otas-navbar .dropdown-item {
    border-radius: 8px;
    font-size: 13px;
    color: var(--otas-text);
    transition: background .15s;
}

.otas-navbar .dropdown-item:hover {
    background: var(--otas-red-light);
    color: var(--otas-red);
}

/* Logo icon */
.otas-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--otas-red), var(--otas-red-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.otas-logo-icon--white {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
}

/* ── Buttons override ───────────────────── */
.btn-success {
    background-color: var(--otas-red);
    border-color: var(--otas-red);
}
.btn-success:hover {
    background-color: var(--otas-red-dark);
    border-color: var(--otas-red-dark);
}
.btn-outline-success {
    color: var(--otas-red);
    border-color: var(--otas-red);
}
.btn-outline-success:hover {
    background-color: var(--otas-red);
    border-color: var(--otas-red);
}
.btn-warning {
    background-color: var(--otas-gold);
    border-color: var(--otas-gold);
}

/* ── Cards ──────────────────────────────── */
.otas-card {
    border: 1px solid var(--otas-border);
    border-radius: var(--otas-radius);
    box-shadow: var(--otas-shadow);
    background: #fff;
    transition: transform .2s, box-shadow .2s;
}
.otas-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* ── Section Titles ─────────────────────── */
.otas-section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--otas-red);
    background: var(--otas-red-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.otas-section-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: var(--otas-text);
    line-height: 1.25;
}

.otas-section-subtitle {
    font-size: 15px;
    color: var(--otas-muted);
    max-width: 540px;
}

/* ── Footer ─────────────────────────────── */
.otas-footer-stats {
    background: linear-gradient(135deg, var(--otas-red), var(--otas-red-dark));
}

.otas-footer-main {
    background: #2a0a0f;
}

.otas-footer-bottom {
    background: #1a0509;
    border-top: 1px solid rgba(255,255,255,.07);
}

.otas-footer-link:hover {
    opacity: 1 !important;
    color: var(--otas-gold) !important;
}

.otas-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: all .2s;
}
.otas-social-btn:hover {
    background: var(--otas-gold);
    border-color: var(--otas-gold);
    color: #000;
}

/* ── WhatsApp Float ─────────────────────── */
.otas-wa-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 999;
    transition: transform .2s;
}
.otas-wa-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* ── Back to Top ────────────────────────── */
.otas-back-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--otas-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s;
}
.otas-back-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Flash Message ──────────────────────── */
.otas-flash {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 9999;
    min-width: 280px;
    max-width: 380px;
    border-radius: var(--otas-radius);
    box-shadow: var(--otas-shadow);
    animation: slideInRight .3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

/* ── Progress Bar ───────────────────────── */
.otas-progress {
    height: 8px;
    border-radius: 4px;
    background: var(--otas-border);
    overflow: hidden;
}
.otas-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--otas-red), #e05a6a);
    transition: width .8s ease;
}

/* ── Utilities ──────────────────────────── */
.text-otas       { color: var(--otas-red) !important; }
.bg-otas         { background-color: var(--otas-red) !important; }
.bg-otas-light   { background-color: var(--otas-red-light) !important; }
.border-otas     { border-color: var(--otas-red) !important; }

/* Hero */
.otas-hero {
    background: linear-gradient(135deg, var(--otas-red) 0%, var(--otas-red-dark) 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.otas-hero-title {
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1.15;
    color: #ffffff;           /* putih solid, bukan --otas-text */
}

.otas-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    max-width: 480px;
    color: rgba(255, 255, 255, 0.85);   /* putih lembut agar tidak terlalu blinding */
}

/* Float cards di atas background merah */
.otas-float-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #ffffff;
}

/* CTA button utama di hero jadi putih */
.otas-hero .btn-success {
    background-color: #ffffff;
    color: var(--otas-red);
    border-color: #ffffff;
    font-weight: 700;
}
.otas-hero .btn-success:hover {
    background-color: #f1f5f9;
}

/* Outline button di hero */
.otas-hero .btn-outline-success {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}
.otas-hero .btn-outline-success:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.otas-hero-img-wrap {
    background: linear-gradient(135deg, var(--otas-red), var(--otas-red-dark));
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otas-hero-img-placeholder {
    font-size: 120px;
    color: rgba(255,255,255,.2);
}

.otas-float-card {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    z-index: 2;
    min-width: 160px;
}
.otas-float-card--tl { top: 20px;    left: -20px; }
.otas-float-card--br { bottom: 20px; right: -20px; }

/* ── Stats bar ──────────────────────────── */
.otas-statsbar {
    background: #fff;
    border-bottom: 1px solid var(--otas-border);
}
.otas-stat-card { transition: transform .2s; }
.otas-stat-card:hover { transform: translateY(-2px); }

/* ── CTA section ────────────────────────── */
.otas-cta-section { background: #f8fafc; }

.otas-cta-card {
    background: linear-gradient(135deg, var(--otas-red) 0%, var(--otas-red-dark) 100%);
    box-shadow: 0 16px 48px rgba(192,21,42,.3);
}

.otas-cta-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(201,147,58,.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Preset button active */
.otas-preset-btn.active {
    background-color: var(--otas-red) !important;
    color: #fff !important;
}