/* =====================================================
   PAGE BUILDER — BLOCK STYLES (RESPONSIVE)
   Digunakan di frontend (public landing page)
   ===================================================== */

/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ─── Base Container ─────────────────────────────── */
.pb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Section Header ─────────────────────────────── */
.pb-section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.pb-section-badge {
    display: inline-block;
    padding: .3rem 1rem;
    border-radius: 999px;
    background: rgba(79,70,229,.1);
    color: #4F46E5;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}
.pb-section-title {
    font-size: clamp(1.4rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 1rem;
}
.pb-section-desc {
    font-size: 1rem;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── NAVBAR ─────────────────────────────────────── */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(15,23,42,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.landing-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.landing-nav-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}
.landing-nav-brand img { height: 32px; object-fit: contain; }
.landing-nav-logo-icon { width: 28px; height: 28px; color: #818cf8; }

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.landing-nav-link {
    padding: .45rem .9rem;
    border-radius: .5rem;
    color: rgba(255,255,255,.8);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.landing-nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.landing-nav-link-cta {
    background: #6366f1;
    color: #fff !important;
    padding: .45rem 1.1rem;
    font-weight: 600;
}
.landing-nav-link-cta:hover { background: #4f46e5 !important; }

/* Dropdown */
.landing-nav-dropdown { position: relative; }
.landing-nav-dropdown-btn {
    display: flex; align-items: center; gap: .35rem;
    padding: .45rem .9rem; border-radius: .5rem;
    color: rgba(255,255,255,.8); font-size: .875rem; font-weight: 500;
    background: none; border: none; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.landing-nav-dropdown-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.landing-nav-dropdown-menu {
    display: none;
    position: absolute; top: calc(100% + .5rem); left: 0;
    background: #1e293b; border: 1px solid rgba(255,255,255,.1);
    border-radius: .75rem; padding: .5rem; min-width: 200px;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
    z-index: 100;
}
.landing-nav-dropdown.is-open .landing-nav-dropdown-menu { display: block; }
.landing-nav-dropdown-item {
    display: block; padding: .6rem .875rem;
    color: rgba(255,255,255,.75); font-size: .875rem;
    text-decoration: none; border-radius: .5rem; transition: all .2s;
}
.landing-nav-dropdown-item:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Mobile toggle */
.landing-nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .625rem;
    cursor: pointer;
    padding: 10px;
    transition: all .25s ease;
}
.landing-nav-mobile-toggle:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
}
.pb-hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
/* Transform bars to dynamic close icon */
.landing-nav-mobile-toggle.is-active .pb-hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.landing-nav-mobile-toggle.is-active .pb-hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}
.landing-nav-mobile-toggle.is-active .pb-hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ─── HERO BLOCK ────────────────────────────────── */
.pb-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}
.pb-hero-bg { position: absolute; inset: 0; z-index: 0; }
.pb-hero-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 70%, #6366f1 100%);
}
.pb-hero-pattern {
    position: absolute; inset: 0; opacity: .08;
    background-image:
        radial-gradient(circle at 20% 20%, #fff 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, #fff 1px, transparent 1px);
    background-size: 60px 60px;
}
.pb-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 1; }
.pb-hero-content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 5rem 1.25rem;
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}
.pb-hero-title {
    font-size: clamp(1.75rem, 6vw, 3.5rem);
    font-weight: 900; line-height: 1.1;
    margin: 0 0 1.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.pb-hero-subtitle {
    font-size: clamp(.95rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,.85);
    line-height: 1.7;
    margin: 0 0 2.5rem;
}
.pb-hero-actions {
    display: flex; gap: 1rem;
    justify-content: center; flex-wrap: wrap;
}
.pb-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 2rem; border-radius: 50px;
    font-weight: 700; font-size: 1rem;
    text-decoration: none; transition: all .25s;
    white-space: nowrap;
}
.pb-btn-primary {
    background: var(--btn-color, #4F46E5); color: #fff;
    box-shadow: 0 4px 20px rgba(79,70,229,.4);
}
.pb-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,70,229,.5); }
.pb-btn-secondary {
    background: rgba(255,255,255,.15); color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
    backdrop-filter: blur(10px);
}
.pb-btn-secondary:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }

/* ─── SECTION TEXT ──────────────────────────────── */
.pb-section-text { padding: 5rem 0; background: #f8fafc; }
.pb-section-text--left .pb-section-header { text-align: left; }
.pb-section-text--left .pb-section-desc { margin: 0; }

/* ─── FEATURES ──────────────────────────────────── */
.pb-features { padding: 5rem 0; background: #fff; }
.pb-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.pb-feature-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 1rem; padding: 2rem;
    transition: all .3s;
    animation: fadeInUp .6s both;
    animation-delay: var(--delay, 0s);
}
.pb-feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.pb-feature-icon {
    width: 56px; height: 56px; border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.pb-feature-title { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 0 0 .5rem; }
.pb-feature-desc  { font-size: .9rem; color: #64748b; line-height: 1.7; margin: 0; }

/* ─── CTA ───────────────────────────────────────── */
.pb-cta {
    position: relative; padding: 6rem 1.5rem;
    text-align: center; overflow: hidden; color: #fff;
}
.pb-cta-bg { position: absolute; inset: 0; }
.pb-cta-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--cta-color, #4F46E5) 0%, color-mix(in srgb, var(--cta-color, #4F46E5) 60%, #000) 100%);
}
.pb-cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.pb-cta-title { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; margin: 0 0 1rem; }
.pb-cta-desc  { font-size: 1rem; color: rgba(255,255,255,.85); margin: 0 0 2rem; line-height: 1.7; }
.pb-cta-btn {
    display: inline-block; padding: .9rem 2.5rem; border-radius: 50px;
    font-weight: 700; text-decoration: none;
    background: rgba(255,255,255,.2); color: #fff;
    border: 2px solid rgba(255,255,255,.6); transition: all .25s;
}
.pb-cta-btn:hover { background: #fff; color: #1e1b4b; }

/* ─── TEXT BLOCK ────────────────────────────────── */
.pb-text-block { padding: 4rem 0; }
.pb-text-block-content { font-size: 1rem; line-height: 1.8; color: #334155; max-width: 860px; margin: 0 auto; }

/* ─── GALLERY ───────────────────────────────────── */
.pb-gallery { padding: 5rem 0; background: #f8fafc; }
.pb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.pb-gallery-item img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    border-radius: .75rem; transition: transform .3s; display: block;
}
.pb-gallery-item img:hover { transform: scale(1.03); }
.pb-gallery-caption { font-size: .8rem; color: #64748b; text-align: center; margin-top: .5rem; }

/* ─── INFO CARDS ────────────────────────────────── */
.pb-info-cards { padding: 5rem 0; background: #fff; }
.pb-info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.pb-info-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 1rem; padding: 1.5rem;
    display: flex; gap: 1rem; align-items: flex-start;
    transition: all .3s;
}
.pb-info-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.pb-info-card-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
}
.pb-info-card-label { font-size: .8rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .3rem; }
.pb-info-card-value { font-size: .95rem; color: #0f172a; margin: 0; word-break: break-word; }

/* ─── FOOTER BLOCK ──────────────────────────────── */
.pb-footer { background: #0f172a; color: rgba(255,255,255,.7); padding: 3rem 0 1.5rem; }
.pb-footer-inner { display: flex; gap: 3rem; flex-wrap: wrap; justify-content: space-between; margin-bottom: 2rem; }
.pb-footer-brand { min-width: 0; flex: 1 1 220px; }
.pb-footer-logo { height: 48px; object-fit: contain; margin-bottom: .75rem;}
.pb-footer-name { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.pb-footer-desc { font-size: .875rem; line-height: 1.7; max-width: 300px; margin: 0; }
.pb-footer-links { flex: 0 0 auto; }
.pb-footer-links h4 { font-size: .85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1rem; }
.pb-footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.pb-footer-link { color: rgba(255,255,255,.6); text-decoration: none; font-size: .875rem; transition: color .2s; }
.pb-footer-link:hover { color: #fff; }
.pb-footer-copyright { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; font-size: .8rem; text-align: center; }

/* ─── Custom Block ──────────────────────────────── */
.pb-custom-block { padding: 4rem 0; }
.pb-custom-block-content { max-width: 860px; margin: 0 auto; }

/* ─── Animations ────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */

/* ─── Tablet: max 1024px ─────────────────────────── */
@media (max-width: 1024px) {
    .pb-features-grid { grid-template-columns: repeat(2, 1fr); }
    .pb-info-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .pb-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .pb-hero-content { max-width: 680px; }
    .pb-section-header { margin-bottom: 2.5rem; }
}

/* ─── Mobile: max 768px ─────────────────────────── */
@media (max-width: 768px) {

    /* Navbar mobile */
    .landing-nav-mobile-toggle { display: flex; }
    .landing-nav-links {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: #0f172a;
        border-top: 1px solid rgba(255,255,255,.08);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: .25rem;
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s;
        z-index: 899;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .landing-nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .landing-nav-link { padding: .75rem 1rem; font-size: .95rem; }
    .landing-nav-link-cta { text-align: center; margin-top: .25rem; }
    .landing-nav-dropdown { position: static; }
    .landing-nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,.04);
        border-radius: .5rem;
        margin-top: .25rem;
    }
    .landing-nav-dropdown-btn { width: 100%; padding: .75rem 1rem; font-size: .95rem; }
    .landing-nav-dropdown.is-open .landing-nav-dropdown-menu { display: block; }

    /* Container padding tighter on mobile */
    .pb-container { padding: 0 1rem; }

    /* Hero */
    .pb-hero { min-height: 70vh; }
    .pb-hero-content { padding: 4rem 1rem; }
    .pb-hero-title { font-size: clamp(1.6rem, 8vw, 2.5rem); }
    .pb-hero-subtitle { font-size: .95rem; margin-bottom: 2rem; }
    .pb-hero-actions { flex-direction: column; align-items: center; gap: .75rem; }
    .pb-btn { width: 100%; max-width: 320px; justify-content: center; padding: .875rem 1.5rem; }

    /* Sections */
    .pb-section-text { padding: 3rem 0; }
    .pb-features { padding: 3rem 0; }
    .pb-cta { padding: 3.5rem 1rem; }
    .pb-gallery { padding: 3rem 0; }
    .pb-info-cards { padding: 3rem 0; }
    .pb-text-block { padding: 2.5rem 0; }

    /* Section header */
    .pb-section-header { margin-bottom: 2rem; }
    .pb-section-desc { font-size: .9rem; }

    /* Grids → single column */
    .pb-features-grid { grid-template-columns: 1fr; gap: 1rem; }
    .pb-info-cards-grid { grid-template-columns: 1fr; gap: 1rem; }
    .pb-gallery-grid { grid-template-columns: 1fr; gap: .75rem; }

    /* Feature card */
    .pb-feature-card { padding: 1.5rem; }
    .pb-feature-card:hover { transform: none; } /* disable hover on touch */

    /* Info card */
    .pb-info-card { padding: 1.25rem; }
    .pb-info-card:hover { transform: none; }

    /* CTA */
    .pb-cta-title { font-size: 1.5rem; }
    .pb-cta-btn { padding: .8rem 1.75rem; font-size: .95rem; }

    /* Footer */
    .pb-footer { padding: 2.5rem 0 1.25rem; }
    .pb-footer-inner { flex-direction: column; gap: 1.75rem; }
    .pb-footer-brand { flex: none; }
    .pb-footer-desc { max-width: 100%; }
    .pb-footer-copyright { font-size: .75rem; padding-top: 1.25rem; }

    /* Text block */
    .pb-text-block-content { font-size: .95rem; }
}

/* ─── Small Mobile: max 480px ────────────────────── */
@media (max-width: 480px) {
    .landing-nav-brand span { display: none; } /* brand text tersembunyi, hanya logo */
    .pb-hero { min-height: 60vh; }
    .pb-hero-content { padding: 3rem .75rem; }
    .pb-feature-icon { width: 48px; height: 48px; }
    .pb-info-card-icon { width: 44px; height: 44px; }
    .pb-footer-logo { height: 36px; }

    /* gallery grid tetap 1 col tapi bisa 2 jika muat */
    .pb-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
}

/* ─── Large screens: min 1280px ─────────────────── */
@media (min-width: 1280px) {
    .pb-features-grid { grid-template-columns: repeat(3, 1fr); }
    .pb-info-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .pb-gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .pb-hero { min-height: 90vh; }
}
