/* ============================================================
   Custom CSS - Griya Permai
   Semua styles yang tidak bisa ditangani Tailwind
   ============================================================ */

:root {
    --green-50: #f0faf4;
    --green-100: #d9f2e3;
    --green-200: #b5e5ca;
    --green-400: #4caf82;
    --green-500: #2e9966;
    --green-600: #1f7a50;
    --green-700: #155c3c;
    --green-900: #0a2e1e;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --white: #ffffff;
    --gray-50: #f8f9f8;
    --gray-100: #f1f3f1;
    --gray-400: #9aa09a;
    --gray-600: #5a605a;
    --gray-800: #2a2f2a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.14);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
    --font-serif: 'Playfair Display', serif;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--gray-800);
    background: white;
    overflow-x: hidden;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes waBounce {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }
    30% {
        transform: scale(1.1) rotate(-8deg);
    }
    60% {
        transform: scale(1.1) rotate(8deg);
    }
}

/* ============ UTILITIES ============ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

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

/* Transition delays untuk reveal animations */
.delay-05 {
    transition-delay: 0.05s;
}
.delay-1 {
    transition-delay: 0.1s;
}
.delay-15 {
    transition-delay: 0.15s;
}
.delay-2 {
    transition-delay: 0.2s;
}
.delay-25 {
    transition-delay: 0.25s;
}
.delay-3 {
    transition-delay: 0.3s;
}
.delay-35 {
    transition-delay: 0.35s;
}
.delay-4 {
    transition-delay: 0.4s;
}
.delay-45 {
    transition-delay: 0.45s;
}
.delay-5 {
    transition-delay: 0.5s;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 99px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.btn-primary {
    background: var(--green-500);
    color: white;
    box-shadow: 0 4px 20px rgba(46, 153, 102, 0.35);
}

.btn-primary:hover {
    background: var(--green-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(46, 153, 102, 0.45);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.btn-wa {
    background: #25d366;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-wa:hover {
    background: #1ebe58;
    transform: translateY(-2px);
}


/* ============ NAVBAR ============ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    transition: all 0.35s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}

#navbar.scrolled ul li a {
    color: var(--gray-600);
}

#navbar.scrolled ul li a:hover {
    color: var(--green-500);
}

#navbar.scrolled .logo-text {
    color: var(--gray-800);
}

#navbar.scrolled .logo-icon {
    color: var(--green-600);
}

#navbar.scrolled #hamburger span {
    background-color: var(--gray-800);
}

/* ============ HERO ============ */

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(10, 46, 30, 0.82) 0%,
            rgba(21, 92, 60, 0.65) 50%,
            rgba(10, 46, 30, 0.5) 100%
        ),
        url('../perumahan-4.jpg') center/cover no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, white, transparent);
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    border: 1px solid var(--green-200);
    animation: float 6s ease-in-out infinite;
}

.hero-circle-1 {
    width: 400px;
    height: 400px;
    top: -80px;
    right: -100px;
}

.hero-circle-2 {
    width: 250px;
    height: 250px;
    bottom: 100px;
    right: 200px;
    animation-delay: 1.5s;
}

.hero-circle-3 {
    width: 160px;
    height: 160px;
    top: 30%;
    left: 60px;
    animation-delay: 3s;
}


.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 11px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: float 1.5s ease-in-out infinite;
}

.kpr-result-box {
    background: linear-gradient(135deg, var(--green-50), rgba(46, 153, 102, 0.05));
    border: 1px solid var(--green-200);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 24px;
}

.kpr-result-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.kpr-result-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green-600);
}

.kpr-hitung-btn {
    width: 100%;
    padding: 14px;
    background: var(--green-500);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 16px;
}

.kpr-hitung-btn:hover {
    background: var(--green-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(46, 153, 102, 0.35);
}

.form-submit {
    width: 100%;
    margin-top: 8px;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
}

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

.floating-wa {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-btn {
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: waBounce 3s ease-in-out infinite 3s;
}

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

.wa-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.wa-pulse {
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    right: 0;
    bottom: 0;
    animation: pulse-ring 1.8s ease-out infinite;
}

.wa-tooltip {
    background: white;
    color: var(--gray-800);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 99px;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.floating-wa:hover .wa-tooltip {
    opacity: 1;
}
