/* =========================================================
   CSS LOKASI — Bimbel Pionir Mandala
   ========================================================= */

:root {
    --primary: #44055D;
    --primary-dark: #30003f;
    --secondary: #782A95;
    --secondary-light: #a76db9;
    --yellow: #FDB515;
    --white: #ffffff;
    --soft: #f8f1fa;
    --soft-purple: #eee2f2;
    --text-dark: #32123e;
    --text-muted: #765f7d;
    --border: rgba(68, 5, 93, .14);
    --container: 1200px;
    --shadow: 0 20px 50px rgba(35, 0, 50, .16);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    background: var(--primary);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    outline: none;
    font: inherit;
    cursor: pointer;
}

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

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

/* ================= BACKGROUND ================= */

.background-wrapper {
    position: fixed;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(164, 0, 217, .65), transparent 32%),
        radial-gradient(circle at 88% 82%, rgba(38, 92, 220, .45), transparent 35%),
        linear-gradient(135deg, #44055D 0%, #640079 50%, #35257a 100%);
}

.aurora {
    position: absolute;
    width: 500px;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .25;
    pointer-events: none;
}

.aurora-1 {
    top: -250px;
    left: -150px;
    background: #c000ff;
}

.aurora-2 {
    right: -180px;
    bottom: -200px;
    background: #247cff;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: .035;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* ================= SCROLL ================= */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 99999;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--yellow);
}

/* ================= NAVBAR ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: .3s ease;
}

.header.scrolled {
    background: rgba(31, 0, 43, .88);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .18);
}

.navbar {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    width: auto;
    height: 64px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    list-style: none;
    margin-left: auto;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a,
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--white);
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: .25s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active,
.nav-dropdown-toggle:hover {
    color: var(--yellow);
}

.nav-dropdown-toggle i {
    font-size: 10px;
    transition: transform .25s ease;
}

.nav-dropdown.active .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 190px;
    padding: 8px;
    background: var(--white);
    border-radius: 13px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .2s ease;
}

.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    background: var(--white);
    transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown-menu a {
    position: relative;
    z-index: 1;
    display: block;
    padding: 11px 13px;
    border-radius: 9px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--soft-purple);
    color: var(--secondary);
}

.btn-daftar-navbar {
    flex-shrink: 0;
    padding: 12px 21px;
    border-radius: 30px;
    background: var(--yellow);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    transition: .25s ease;
}

.btn-daftar-navbar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 181, 21, .25);
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    font-size: 20px;
}

.mobile-nav-overlay {
    display: none;
}

/* ================= GENERAL SECTIONS ================= */

main {
    position: relative;
}

.location-hero {
    padding: 145px 0 90px;
}

.location-hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 70px;
}

.hero-copy {
    max-width: 650px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
}

.hero-copy h1 {
    margin-bottom: 22px;
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero-copy h1 span {
    color: var(--yellow);
}

.hero-copy > p {
    max-width: 590px;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
}

.hero-stats {
    display: flex;
    gap: 42px;
    margin-top: 36px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    color: var(--white);
    font-size: 28px;
    font-weight: 900;
}

.hero-stats span {
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-map-card {
    position: relative;
    width: min(500px, 100%);
    aspect-ratio: 1.15;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 30px;
    background:
        radial-gradient(circle at 25% 30%, rgba(253, 181, 21, .18), transparent 18%),
        radial-gradient(circle at 75% 65%, rgba(124, 42, 149, .55), transparent 25%),
        linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.035));
    box-shadow: var(--shadow);
}

.hero-map-card::before,
.hero-map-card::after {
    content: "";
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, .2);
    border-radius: 50%;
}

.hero-map-card::before {
    width: 70%;
    aspect-ratio: 1;
    left: 15%;
    top: 12%;
}

.hero-map-card::after {
    width: 42%;
    aspect-ratio: 1;
    left: 29%;
    top: 27%;
}

.map-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    flex-direction: column;
    transform: translate(-50%, -50%);
}

.map-center img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,.25));
}

.map-center strong {
    font-size: 24px;
    font-weight: 900;
}

.map-center span {
    color: rgba(255,255,255,.65);
    font-size: 11px;
}

.map-pin {
    position: absolute;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0,0,0,.22);
    animation: pinFloat 3s ease-in-out infinite;
}

.pin-one {
    left: 20%;
    top: 28%;
}

.pin-two {
    right: 19%;
    top: 25%;
    animation-delay: .5s;
}

.pin-three {
    right: 24%;
    bottom: 22%;
    animation-delay: 1s;
}

.map-route {
    position: absolute;
    z-index: 2;
    height: 3px;
    background: rgba(253,181,21,.7);
    transform-origin: left center;
    border-radius: 20px;
}

.route-one {
    width: 210px;
    left: 27%;
    top: 39%;
    transform: rotate(12deg);
}

.route-two {
    width: 150px;
    left: 49%;
    top: 54%;
    transform: rotate(44deg);
}

@keyframes pinFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ================= BRANCHES ================= */

.branches-section {
    padding: 80px 0 100px;
    background: #fbf7fc;
    color: var(--text-dark);
    border-radius: 38px 38px 0 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 42px;
}

.section-heading .eyebrow {
    color: var(--secondary);
}

.section-heading h2 {
    margin-bottom: 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -1px;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 16px;
}

.branch-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 25px;
    align-items: stretch;
}

.branch-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.branch-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px 52px 1fr 24px;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 8px 25px rgba(52, 0, 70, .06);
    transition: .25s ease;
}

.branch-card:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 30px rgba(52, 0, 70, .12);
}

.branch-card.active {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #fff, #f5eaf8);
    box-shadow: 0 14px 32px rgba(120, 42, 149, .15);
}

.branch-number {
    color: #bca9c3;
    font-size: 13px;
    font-weight: 900;
}

.branch-card.active .branch-number {
    color: var(--secondary);
}

.branch-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--soft-purple);
    color: var(--secondary);
    font-size: 20px;
}

.branch-card.active .branch-icon {
    background: var(--secondary);
    color: var(--white);
}

.branch-info span {
    color: var(--secondary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.branch-info h3 {
    margin: 1px 0 3px;
    font-size: 20px;
    font-weight: 900;
}

.branch-info p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.branch-arrow {
    color: #bbaabd;
    transition: .25s ease;
}

.branch-card.active .branch-arrow {
    color: var(--secondary);
    transform: translateX(3px);
}

.map-panel {
    min-height: 570px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.map-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.map-panel-top span {
    color: var(--secondary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.map-panel-top h3 {
    margin-top: 2px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 900;
}

.map-panel-top a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    transition: .2s ease;
}

.map-panel-top a:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

.map-panel iframe {
    display: block;
    width: 100%;
    height: calc(570px - 82px);
    border: 0;
}

/* ================= TESTIMONIAL ================= */

.testimonial-section {
    padding: 90px 0 105px;
    background:
        radial-gradient(circle at 10% 20%, rgba(167, 109, 185, .25), transparent 30%),
        linear-gradient(135deg, #44055D, #5d0875 55%, #3d287e);
}

.testimonial-heading {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.testimonial-heading .eyebrow {
    color: var(--yellow);
}

.testimonial-heading h2 {
    color: var(--white);
}

.testimonial-heading p {
    color: rgba(255,255,255,.7);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.testimonial-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(8px);
    transition: .25s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,.13);
}

.testimonial-video {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #120917;
}

.testimonial-video video {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    background: linear-gradient(145deg, #24102b, #0d0810);
    color: rgba(255,255,255,.7);
    pointer-events: none;
}

.video-placeholder i {
    color: var(--yellow);
    font-size: 40px;
}

.video-placeholder span {
    font-size: 12px;
    font-weight: 700;
}

.testimonial-info {
    padding: 18px;
}

.testimonial-info span {
    color: var(--yellow);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.testimonial-info h3 {
    margin: 4px 0 5px;
    font-size: 17px;
    font-weight: 800;
}

.testimonial-info p {
    color: rgba(255,255,255,.65);
    font-size: 12px;
    line-height: 1.55;
}

/* ================= FOOTER ================= */

.footer-section {
    background: #25002f;
}

.footer {
    padding: 65px 0 0;
}

.footer-container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 45px;
    padding-bottom: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4,
.footer-social-column h4 {
    margin-bottom: 7px;
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
}

.footer-column a {
    width: fit-content;
    color: rgba(255,255,255,.65);
    font-size: 12px;
    transition: .2s ease;
}

.footer-column a:hover {
    color: var(--yellow);
}

.footer-right {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 35px;
}

.contact-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(253,181,21,.12);
    color: var(--yellow);
}

.footer-social {
    display: flex;
    gap: 9px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--white);
    transition: .2s ease;
}

.footer-social a:hover {
    background: var(--yellow);
    color: var(--primary);
}

.footer-copyright {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.45);
    text-align: center;
    font-size: 11px;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {

    .container {
        width: min(100% - 32px, 700px);
    }

    .nav-menu,
    .btn-daftar-navbar {
        display: none;
    }

    .navbar {
        min-height: 74px;
    }

    .logo img {
        height: 54px;
    }

    .mobile-menu-toggle {
        display: grid;
        place-items: center;
    }

    .location-hero {
        padding-top: 115px;
        padding-bottom: 60px;
    }

    .location-hero-inner {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-copy h1 {
        font-size: clamp(42px, 11vw, 60px);
    }

    .hero-copy > p {
        font-size: 16px;
    }

    .hero-stats {
        gap: 25px;
    }

    .branch-layout {
        grid-template-columns: 1fr;
    }

    .map-panel {
        min-height: 430px;
    }

    .map-panel iframe {
        height: 348px;
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-right {
        grid-column: 1 / -1;
    }

    /* MOBILE MENU */

    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: flex;
        justify-content: flex-end;
        background: rgba(0,0,0,.55);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: .25s ease;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav-panel {
        width: min(320px, 88%);
        height: 100%;
        padding: 25px 22px;
        overflow-y: auto;
        background: var(--white);
        color: var(--primary);
        transform: translateX(100%);
        transition: .3s ease;
    }

    .mobile-nav-overlay.active .mobile-nav-panel {
        transform: translateX(0);
    }

    .mobile-menu-close {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        margin-left: auto;
        border-radius: 10px;
        background: var(--soft-purple);
        color: var(--primary);
        font-size: 20px;
    }

    .mobile-nav-logo {
        width: 72px;
        height: 72px;
        margin: 10px auto 25px;
        object-fit: contain;
    }

    .mobile-nav-panel > a,
    .mobile-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 15px 5px;
        border-bottom: 1px solid var(--border);
        background: transparent;
        color: var(--primary);
        font-size: 15px;
        font-weight: 800;
        text-align: left;
    }

    .mobile-nav-panel > a.active {
        color: var(--secondary);
    }

    .mobile-dropdown-menu {
        display: none;
        padding: 4px 0 8px 15px;
    }

    .mobile-dropdown.active .mobile-dropdown-menu {
        display: block;
    }

    .mobile-dropdown-menu a {
        display: block;
        padding: 10px 5px;
        color: var(--text-muted);
        font-size: 13px;
        font-weight: 700;
    }

    .mobile-dropdown-toggle i {
        transition: .2s ease;
    }

    .mobile-dropdown.active .mobile-dropdown-toggle i {
        transform: rotate(180deg);
    }

    .mobile-register {
        justify-content: center !important;
        margin-top: 25px;
        border: none !important;
        border-radius: 30px;
        background: var(--yellow);
        color: var(--primary) !important;
    }
}

@media (max-width: 600px) {

    .container {
        width: min(100% - 24px, 520px);
    }

    .location-hero {
        padding-top: 105px;
    }

    .hero-map-card {
        border-radius: 22px;
    }

    .hero-stats {
        justify-content: space-between;
        gap: 10px;
    }

    .hero-stats strong {
        font-size: 23px;
    }

    .branches-section {
        padding-top: 60px;
        border-radius: 24px 24px 0 0;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .branch-card {
        grid-template-columns: 32px 45px 1fr 18px;
        gap: 10px;
        padding: 14px;
    }

    .branch-icon {
        width: 45px;
        height: 45px;
    }

    .branch-info h3 {
        font-size: 17px;
    }

    .branch-info p {
        font-size: 11px;
    }

    .map-panel {
        min-height: 370px;
    }

    .map-panel-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .map-panel iframe {
        height: 285px;
    }

    .testimonial-section {
        padding: 65px 0 75px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-right {
        grid-template-columns: 1fr;
    }
}
