/* ========================================
   HARAZAKY INTERIOR — Custom Stylesheet
   Theme: Warm Minimalist
   ======================================== */

/* ===== BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: #FEFDFB;
    color: #292524;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== SECTION LABEL ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #B45309;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1.5px;
    background: #D97706;
}

/* ===== HERO SLIDESHOW ===== */
.hero-slideshow {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 1000px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 12s ease-in-out infinite alternate;
}

.hero-slide.active img {
    animation-play-state: running;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* Slide text content */
.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 10;
}

.slide-text-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.slide-text-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Slide indicators */
.slide-indicator {
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.slide-indicator.active {
    width: 56px;
    background: rgba(255, 255, 255, 0.5);
}

.slide-indicator .bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #D97706;
    border-radius: 2px;
}

.slide-indicator.active .bar-fill {
    animation: fillBar 6s linear forwards;
}

@keyframes fillBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===== NAVIGATION ===== */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.nav-scrolled .nav-link {
    color: #57534E !important;
}

.nav-scrolled .nav-link:hover {
    color: #78350F !important;
}

.nav-scrolled .nav-logo {
    color: #1C1917 !important;
}

.nav-scrolled .nav-cta {
    background: #78350F !important;
    color: #FEF3C7 !important;
    box-shadow: 0 2px 8px rgba(120, 53, 15, 0.2) !important;
    border: none !important;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: #FFFFFF;
    border: 1px solid #F5F5F4;
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.4s ease;
}

.service-card:hover {
    border-color: #D97706;
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(120, 53, 15, 0.08);
}

.service-card:hover .svc-icon {
    background: #FEF3C7;
    color: #92400E;
}

.svc-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #FDF9F0;
    color: #B45309;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    font-size: 22px;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    cursor: pointer;
    background: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Saat menu terbuka, ubah jadi X */
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Warna berubah saat navbar scrolled (putih → gelap) */
.nav-scrolled .hamburger-btn span {
    background: #1C1917;
}

/* ===== PROJECT CARDS ===== */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    filter: saturate(0.85);
}

.project-card:hover img {
    transform: scale(1.06);
    filter: saturate(1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28,25,23,0.85) 0%, rgba(28,25,23,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* ===== STEP CONNECTOR ===== */
.step-connector {
    position: absolute;
    top: 28px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: linear-gradient(to right, #D97706, #F5EEDF);
}

@media (max-width: 1023px) {
    .step-connector {
        display: none;
    }
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    background: #FFFFFF;
    border: 1px solid #F5F5F4;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-grid .g-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-grid .g-item.tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-grid .g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: saturate(0.8);
}

.gallery-grid .g-item:hover img {
    transform: scale(1.05);
    filter: saturate(1);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid .g-item.tall {
        grid-row: span 1;
        aspect-ratio: 1;
    }
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid #E7E5E4;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-chevron {
    transition: transform 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: #78350F;
    color: #FEF3C7;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(120, 53, 15, 0.25);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    background: #92400E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120, 53, 15, 0.3);
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline:hover {
    border-color: #FEF3C7;
    color: #FEF3C7;
    transform: translateY(-2px);
}

.btn-outline-warm {
    border: 1.5px solid #D6D3D1;
    color: #57534E;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline-warm:hover {
    border-color: #78350F;
    color: #78350F;
    transform: translateY(-2px);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ===== WHATSAPP FLOATING BUTTON ===== */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    animation: waPulse 2.5s infinite;
    text-decoration: none;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

@keyframes waPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.08);
    }
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    background: #FFFFFF;
    border: 1px solid #E7E5E4;
    border-radius: 14px;
    padding: 16px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateX(120%);
    transition: transform 0.4s ease;
}

.toast.show {
    transform: translateX(0);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}