/* =========================================================
   RESET & BASE STYLES (MOBILE-FIRST RESPONSIVE)
   ========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 72px; /* Ruang untuk sticky CTA bar di mobile */
}

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

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 18px;
}

/* =========================================================
   PROMO BAR & NAVBAR
   ========================================================= */
.promo-bar {
    background: #0f172a;
    color: #f8fafc;
    text-align: center;
    padding: 9px 12px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.navbar {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    position: relative;
}

.brand-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.brand-logo span {
    color: #2563eb;
}

/* Tombol Hamburger Mobile */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #0f172a;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Menu Navigasi Mobile Dropdown */
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 16px 20px 22px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    border-top: 1px solid #e2e8f0;
    gap: 14px;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 1rem;
    padding: 6px 0;
}

.nav-links .btn-nav {
    background: #2563eb;
    color: #ffffff;
    text-align: center;
    padding: 12px 18px;
    border-radius: 8px;
    margin-top: 4px;
}

/* =========================================================
   HERO SECTION (MOBILE FIRST)
   ========================================================= */
.hero {
    padding: 32px 0 48px;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.14);
}

.floating-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-text h1 {
    font-size: clamp(1.65rem, 4vw, 2.6rem);
    line-height: 1.22;
    margin-bottom: 14px;
    color: #0f172a;
}

.hero-text p {
    color: #475569;
    margin-bottom: 20px;
    font-size: 0.98rem;
}

.price-box {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 22px;
    display: inline-block;
    width: 100%;
}

.price-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1rem;
}

.discount-tag {
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
}

.new-price {
    font-size: 1.9rem;
    font-weight: 800;
    color: #dc2626;
    line-height: 1.1;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.btn-primary, .btn-secondary {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.15s ease, background 0.2s ease;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
}

.trust-item {
    background: #ffffff;
    padding: 8px 6px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* =========================================================
   SECTIONS (FEATURES, PRODUCTS, TESTIMONIALS)
   ========================================================= */
.features, .products, .testimonials {
    padding: 52px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 34px;
}

.section-header h2 {
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    margin-bottom: 8px;
    color: #0f172a;
}

.section-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.feature-grid, .product-grid, .testi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-card, .product-card, .testi-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

/* Product Cards */
.product-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card.featured {
    border: 2px solid #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 10px;
}

.tag.hot {
    background: #dbeafe;
    color: #1d4ed8;
}

.product-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 0.92rem;
    color: #64748b;
}

.card-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 16px 0;
}

.btn-card {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    margin-top: auto;
}

.btn-card.primary {
    background: #2563eb;
    color: #ffffff;
}

/* Testimoni */
.testi-card .stars {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.testi-card p {
    font-style: italic;
    color: #334155;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.testi-card strong {
    font-size: 0.9rem;
    color: #0f172a;
}

/* =========================================================
   ORDER FORM
   ========================================================= */
.order-section {
    padding: 52px 0;
    background: #eff6ff;
}

.order-box {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 26px 20px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.order-box h2 {
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.order-box p {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem; /* Mencegah auto-zoom di iOS Safari */
    font-family: inherit;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25);
}

.btn-submit:hover {
    background: #15803d;
}

/* =========================================================
   FOOTER & MOBILE STICKY CTA
   ========================================================= */
.footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 32px 0;
    font-size: 0.88rem;
}

.footer-keywords {
    margin-top: 12px;
    line-height: 1.8;
}

.footer-keywords a {
    color: #cbd5e1;
    text-decoration: none;
}

/* Sticky Bottom Bar khusus Mobile */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

.sticky-price small {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
}

.sticky-price strong {
    font-size: 1.15rem;
    color: #dc2626;
    font-weight: 800;
}

.sticky-btn {
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
}

/* =========================================================
   TABLET BREAKPOINT (min-width: 640px)
   ========================================================= */
@media (min-width: 640px) {
    .cta-group {
        flex-direction: row;
    }
    .btn-primary, .btn-secondary {
        display: inline-block;
        width: auto;
    }
    .price-box {
        width: auto;
        min-width: 280px;
    }
    .order-box {
        padding: 36px 32px;
    }
}

/* =========================================================
   DESKTOP BREAKPOINT (min-width: 900px)
   ========================================================= */
@media (min-width: 900px) {
    body {
        padding-bottom: 0; /* Hilangkan ruang sticky CTA di desktop */
    }

    .mobile-sticky-cta {
        display: none; /* Sembunyikan bar bawah di desktop */
    }

    .menu-toggle {
        display: none; /* Sembunyikan hamburger di desktop */
    }

    .nav-flex {
        height: 74px;
    }

    .brand-logo {
        font-size: 1.45rem;
        max-width: none;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border: none;
        gap: 24px;
    }

    .nav-links .btn-nav {
        margin-top: 0;
        padding: 10px 20px;
    }

    .hero {
        padding: 68px 0;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        gap: 48px;
        align-items: center;
    }

    /* Di desktop teks di kiri, gambar di kanan */
    .hero-text {
        order: 1;
    }
    .hero-image {
        order: 2;
    }

    .features, .products, .testimonials, .order-section {
        padding: 76px 0;
    }

    .feature-grid, .product-grid, .testi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}
