@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;600;700&display=swap');

/* ==========================================================================
   GLOBAL RESET & PERFECT MOBILE FIT
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #7b120c;
    --dark-charcoal: #2A3235;
    --accent-orange: #f05a28;
    --font-main: 'Google Sans Flex', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--primary-red); /* Matches hero so no white gap ever appears */
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--primary-red);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Outer Container - Mobile Fit */
.page-wrapper {
    position: relative;
    width: 100%;
    max-width: 430px; /* iPhone 15 Pro, Max, and modern Androids */
    min-height: 100vh;
    background-color: #ffffff;
    margin: 0 auto;
    overflow-x: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
}

/* On Desktop Screens: Add subtle frame margin */
@media (min-width: 600px) {
    body {
        padding: 30px 0 60px;
        background: #0d0f11;
    }
    .page-wrapper {
        border-radius: 32px;
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
}

/* On Mobile Screens: 100% full width, zero edge gaps */
@media (max-width: 599px) {
    body {
        background-color: var(--primary-red);
    }
    .page-wrapper {
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
        width: 100vw;
    }
}

.mobile-canvas {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   ANIMASI MUNCUL 1 PER 1 (STAGGERED ENTRANCE)
   ========================================================================== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header items animate automatically 1 by 1 on load */
.header-logo.reveal-item {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.social-card.reveal-item {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.header-actions .action-pill:nth-child(1) {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.44s both;
}

.header-actions .action-pill:nth-child(2) {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.58s both;
}

.header-actions .action-pill:nth-child(3) {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both;
}

/* Scroll reveal items (Cluster, Residential, Commercial, Footer) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   1. HEADER SECTION (0 - 630px)
   ========================================================================== */
.header-section {
    position: relative;
    width: 100%;
    min-height: 630px;
    background-color: var(--primary-red);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 25px;
}

.header-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('assets/bg-header.png') center top / cover no-repeat;
    transform: scaleX(-1);
    pointer-events: none;
    z-index: 0;
}

.header-logo {
    position: relative;
    width: 244px;
    height: 159px;
    margin-top: 62px;
    background: url('assets/logo.png') center / contain no-repeat;
    pointer-events: none;
    z-index: 1;
    animation: logoFloat 4s ease-in-out infinite;
}

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

/* Social Card in Header */
.social-card {
    position: relative;
    width: calc(100% - 32px);
    max-width: 343px;
    height: 106px;
    margin-top: 17px;
    background: url('assets/social-card-bg.png') center / 100% 100% no-repeat;
    border-radius: 14px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
}

.social-title {
    font-style: normal;
    font-weight: 700;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    color: #FFFFFF;
    pointer-events: none;
    margin-bottom: 12px;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.social-btn {
    display: block;
    width: 33px;
    height: 33px;
    border-radius: 8px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.15);
    filter: brightness(1.2) drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.social-btn:active {
    transform: scale(0.95);
}

.btn-tiktok {
    background-image: url('assets/ICON TIKTOK.svg');
}

.btn-instagram {
    background-image: url('assets/ICON INSTAGRAM.svg');
}

.btn-facebook {
    width: 34px;
    height: 34px;
    background-image: url('assets/ICON FACEBOOK.svg');
}

/* Header Action Buttons */
.header-actions {
    position: relative;
    width: calc(100% - 32px);
    max-width: 342px;
    margin-top: 27px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    z-index: 1;
}

.action-pill {
    position: relative;
    width: 100%;
    height: 60px;
    background: url('assets/btn-bg.png') center / 100% 100% no-repeat;
    border-radius: 12px;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, filter 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.action-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    filter: brightness(1.02);
}

.action-pill:active {
    transform: translateY(1px) scale(0.99);
}

.pill-icon {
    position: absolute;
    left: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.pill-icon.icon-wa {
    width: 28px;
    height: 28px;
    background-image: url('assets/icon-wa.png');
}

.pill-icon.icon-browser {
    width: 31px;
    height: 31px;
    background-image: url('assets/icon-browser.png');
}

.pill-icon.icon-maps {
    left: 14px;
    width: 23px;
    height: 31px;
    background-image: url('assets/icon-maps.png');
}

.pill-label {
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    color: var(--dark-charcoal);
    pointer-events: none;
    letter-spacing: -0.2px;
}

.pill-dots {
    position: absolute;
    right: 19px;
    width: 3.68px;
    height: 15px;
    background: url('assets/dots-menu.png') center / contain no-repeat;
    pointer-events: none;
}

/* ==========================================================================
   2. CLUSTER HIGHLIGHT SECTION (663 - 1009px)
   ========================================================================== */
.cluster-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    padding: 33px 0 34px;
}

.cluster-card {
    position: relative;
    width: calc(100% - 28px);
    max-width: 346px;
    height: 346px;
    background: url('assets/cluster-highlight.png') center / contain no-repeat;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.cluster-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

/* ==========================================================================
   3. RESIDENTIAL SECTION (1043 - 1880px)
   ========================================================================== */
.residential-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 58px;
}

.section-title-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.section-title-img {
    height: 14px;
    object-fit: contain;
}

/* Brick Series Special Card */
.brick-series-card {
    position: relative;
    width: calc(100% - 20px);
    max-width: 355px;
    height: 318px;
    margin: 0 auto 30px;
    background: url('assets/brick-series-bg.png') center / 100% 100% no-repeat;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(123, 18, 12, 0.35);
    padding-top: 101px;
}

/* Floating Sticker Badge */
.unit-terbaru-badge {
    position: absolute;
    right: 0px;
    top: -9px;
    width: 95px;
    height: 90px;
    background: url('assets/badge-unit-terbaru.png') center / contain no-repeat;
    pointer-events: none;
    animation: stickerPulse 3s ease-in-out infinite;
    transform-origin: 85% 15%;
    z-index: 5;
}

@keyframes stickerPulse {
    0%, 100% {
        transform: rotate(-2deg) scale(1);
    }
    50% {
        transform: rotate(3deg) scale(1.06);
    }
}

/* 3 Buttons inside Brick Series */
.brick-buttons-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-brick {
    position: relative;
    width: calc(100% - 24px);
    max-width: 317px;
    height: 59px;
    background: url('assets/btn-bg.png') center / 100% 100% no-repeat;
    border: none;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    line-height: 19px;
    color: var(--dark-charcoal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-brick:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    filter: brightness(1.02);
}

.btn-brick:active {
    transform: translateY(1px) scale(0.99);
}

/* 5 Residential Product Buttons */
.residential-buttons-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
}

.btn-residential-item {
    position: relative;
    width: calc(100% - 24px);
    max-width: 330px;
    height: 71px;
    background: url('assets/image 17.svg') center / 100% 100% no-repeat;
    border: none;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(216, 60, 22, 0.25);
    transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s ease, filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-residential-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 28px rgba(216, 60, 22, 0.45);
    filter: brightness(1.06);
}

.btn-residential-item:active {
    transform: translateY(1px) scale(0.99);
}

.btn-label-svg {
    height: 14px;
    object-fit: contain;
    pointer-events: none;
}

/* ==========================================================================
   4. COMMERCIAL SECTION (1938 - 2150px)
   ========================================================================== */
.commercial-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 36px;
}

.commercial-buttons-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    width: 100%;
}

.btn-commercial-item {
    position: relative;
    width: calc(100% - 24px);
    max-width: 333px;
    height: 71px;
    background: url('assets/image 22.svg') center / 100% 100% no-repeat;
    border: none;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s ease, filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-commercial-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    filter: brightness(1.1);
}

.btn-commercial-item:active {
    transform: translateY(1px) scale(0.99);
}

/* ==========================================================================
   5. FOOTER SECTION (2166 - 2297px)
   ========================================================================== */
.footer-section {
    position: relative;
    width: 100%;
    min-height: 131px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0 13px;
    background-color: var(--primary-red);
}

.footer-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('assets/footer-bg.png') center / cover no-repeat;
    pointer-events: none;
    z-index: 0;
}

.footer-social-card {
    position: relative;
    width: calc(100% - 32px);
    max-width: 343px;
    height: 106px;
    background: url('assets/social-card-bg.png') center / 100% 100% no-repeat;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    z-index: 1;
}

/* ==========================================================================
   6. INTERACTIVE MODAL DIALOG
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: #1e2226;
    border-radius: 20px;
    padding: 24px 20px;
    color: #fff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(240, 90, 40, 0.2);
    border: 1px solid rgba(240, 90, 40, 0.5);
    color: #ff7e50;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 13px;
    line-height: 18px;
    color: #b0b8bf;
    margin-bottom: 20px;
}

.modal-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
    text-align: left;
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px;
}

.feature-box .label {
    font-size: 10px;
    text-transform: uppercase;
    color: #7d8893;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.feature-box .value {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.modal-cta-wa {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.modal-cta-wa:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.modal-cta-wa:active {
    transform: translateY(1px);
}

/* ==========================================================================
   7. FLOATING QUICK WHATSAPP BUTTON
   ========================================================================== */
.floating-wa-btn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.6);
    cursor: pointer;
    z-index: 99;
    text-decoration: none;
    animation: waPulse 2.5s infinite;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-wa-btn:hover {
    transform: scale(1.12);
}

.floating-wa-btn img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

@keyframes waPulse {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}