/* ========================================== */
/* TASYA PRINT - CSS FINAL (RINGAN, MODERN) */
/* Scroll smooth | Snap slider | Hero rapat */
/* ========================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    background: #f0fdfa;
}

:root {
    --primary-color: #ea580c;
    --primary-hover: #c2410c;
    --bg-card: #ffffff;
    --text-color: #1f2937;
    --navbar-bg: rgba(255,255,255,0.92);
    --hero-bg: linear-gradient(135deg, #fff7ed, #fed7aa);
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
}

/* ========================================== */
/* NAVBAR (TRANSPARAN, HIDE/SCROLL) */
/* ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 5%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.navbar.hide {
    transform: translateY(-100%);
}

.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 38px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--warna-utama);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    gap: 1.2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--warna-teks);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--warna-utama);
}

/* ========================================== */
/* SEARCH BOX (MODERN) */
/* ========================================== */
.search-box {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 40px;
    padding: 0.3rem 1rem;
    transition: all 0.3s ease;
    width: 240px;
}

.search-box:focus-within {
    background: white;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
}

.search-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--warna-abu);
    margin-right: 0.5rem;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.85rem;
    padding: 0.3rem 0;
    background: transparent;
}

/* ========================================== */
/* HERO SLIDER (SNAP SCROLL) */
/* ========================================== */
.hero-slider-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    cursor: grab;
    margin-top: 70px; /* jarak agar tidak ketutupan navbar fixed */
}

.hero-slider-container:active {
    cursor: grabbing;
}

.hero-slider {
    display: flex;
    flex-direction: row;
}

.hero-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.hero-slider-container::-webkit-scrollbar {
    display: none;
}

.hero {
    padding: 0rem 0.8rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-badge {
    background: rgba(15, 118, 110, 0.12);
    color: var(--warna-utama);
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: var(--warna-utama);
    line-height: 1.3;
}

.hero p {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    color: #475569;
}

.hero-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--warna-utama);
    color: white;
}

.btn-primary:hover {
    background: #115e59;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--warna-utama);
    color: var(--warna-utama);
}

.btn-secondary:hover {
    background: var(--warna-utama);
    color: white;
}

.hero-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

/* ========================================== */
/* KATEGORI SLIDER */
/* ========================================== */
.kategori-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    margin: 0.5rem 0;
    padding-bottom: 0.3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.kategori-wrapper::-webkit-scrollbar {
    height: 2px;
}

.kategori-wrapper::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.kategori-wrapper::-webkit-scrollbar-thumb {
    background: var(--warna-utama);
    border-radius: 10px;
}

.kategori-horizontal {
    display: inline-flex;
    gap: 0.5rem;
}

.kategori-btn {
    background: white;
    border: 1.5px solid var(--warna-utama);
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--warna-utama);
    cursor: pointer;
    transition: var(--transition);
}

.kategori-btn.active,
.kategori-btn:hover {
    background: var(--warna-utama);
    color: white;
}

/* ========================================== */
/* CONTAINER & SECTION */
/* ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 16px;
    background: white;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.section-title {
    font-size: 1.2rem;
    text-align: center;
    margin: 1rem 0 0.8rem;
    color: var(--warna-teks);
    font-weight: 700;
}

/* ========================================== */
/* PRODUCT GRID */
/* ========================================== */
.product-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.product-card {
    background: var(--warna-kartu);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 0.5rem;
    text-align: center;
}

.product-title {
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    color: var(--warna-teks);
}

.product-price {
    font-size: 0.75rem;
    color: var(--warna-utama);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.btn-wa-product {
    background: #25D366;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 14px;
    color: white;
}

/* ========================================== */
/* STEPS, PORTFOLIO, TESTIMONI, FAQ */
/* ========================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.step-item {
    background: #f8fafc;
    padding: 0.5rem 0.2rem;
    border-radius: 10px;
    text-align: center;
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--warna-utama);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    margin: 0 auto 0.2rem;
}

.portfolio-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.portfolio-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.portfolio-title {
    padding: 0.3rem;
    font-weight: 600;
    font-size: 0.7rem;
    text-align: center;
}

.testimoni-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.testimoni-card {
    background: #f8fafc;
    padding: 0.8rem;
    border-radius: 12px;
}

.testimoni-text {
    font-style: italic;
    font-size: 0.75rem;
    color: #334155;
}

.testimoni-author {
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 0.3rem;
    color: var(--warna-utama);
}

.faq-item {
    background: #f8fafc;
    padding: 0.6rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.faq-question {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--warna-utama);
    margin-bottom: 0.2rem;
}

/* ========================================== */
/* CTA, MAP, FOOTER */
/* ========================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--warna-utama), #10b981);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
    color: white;
}

.cta-banner h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.map-container iframe {
    width: 100%;
    max-width: 600px;
    height: 150px;
    border-radius: 12px;
}

.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 1rem 0 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    padding: 0 1rem;
}

.footer h3 {
    color: white;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
}

.copyright {
    font-size: 0.55rem;
    padding-top: 0.5rem;
}


/* ========================================== */
/* FLOATING WA (DIAM, HIJAU PANJANG) */
/* ========================================== */
.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.floating-wa a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-wa a i {
    font-size: 20px;
}

.floating-wa a span {
    display: inline-block;
}

/* TIDAK ADA EFEK HOVER SAMA SEKALI */
.floating-wa a:hover {
    background: #25D366;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================== */
/* MODAL */
/* ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    animation: fadeInUp 0.2s ease;
}

.modal-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;   /* ← ganti dari cover ke contain */
    background: #f1f5f9;
    border-radius: 20px 20px 0 0;
}

.modal-body {
    padding: 0.8rem;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--warna-utama);
}

.modal-desc {
    font-size: 0.7rem;
    color: #334155;
    margin: 0.3rem 0;
}

.modal-wa-btn {
    display: block;
    background: #25D366;
    color: white;
    text-align: center;
    padding: 0.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 6px;
    font-size: 20px;
    cursor: pointer;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================== */
/* ANIMASI (hero turun, produk slide) */
/* ========================================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide:first-child .hero {
    animation: slideDown 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-card {
    animation: slideInRight 0.5s ease-out forwards;
    opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.03s; }
.product-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3) { animation-delay: 0.09s; }
.product-card:nth-child(4) { animation-delay: 0.12s; }
.product-card:nth-child(5) { animation-delay: 0.15s; }
.product-card:nth-child(6) { animation-delay: 0.18s; }
.product-card:nth-child(7) { animation-delay: 0.21s; }
.product-card:nth-child(8) { animation-delay: 0.24s; }
.product-card:nth-child(9) { animation-delay: 0.27s; }
.product-card:nth-child(10) { animation-delay: 0.30s; }
.product-card:nth-child(11) { animation-delay: 0.33s; }
.product-card:nth-child(12) { animation-delay: 0.36s; }

.kategori-wrapper {
    animation: fadeIn 0.5s ease;
}

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

/* ========================================== */
/* RESPONSIF HP */
/* ========================================== */
@media (max-width: 640px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0.5rem 1rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.8rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e2e8f0;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .search-box {
        width: 150px;
        padding: 0.2rem 0.8rem;
    }
    
    .search-input {
        font-size: 0.7rem;
    }
    
    .hero-slider-container {
        margin-top: 55px;
    }
    
    .hero {
        padding: 0rem 0.5rem;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero h1 {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 0.75rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
    
    .hero-image img {
        max-width: 70%;
        margin: 0 auto;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.5rem;
    }
    
    .product-title {
        font-size: 0.7rem;
    }
    
    .btn-wa-product {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .testimoni-grid {
        grid-template-columns: 1fr;
        
    }
    
}

/* ========================================== */
/* TABLET */
/* ========================================== */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .search-box {
        width: 200px;
    }
}

/* ========================================== */
/* UTILITY */
/* ========================================== */
.fade-section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.search-info {
    text-align: center;
    padding: 0.3rem;
    background: var(--warna-utama);
    color: white;
    border-radius: 40px;
    margin-bottom: 0.5rem;
    font-size: 0.65rem;
}

.reset-search {
    background: none;
    border: 1px solid var(--warna-utama);
    color: var(--warna-utama);
    padding: 0.1rem 0.5rem;
    border-radius: 30px;
    font-size: 0.6rem;
    cursor: pointer;
}
/* PASTIKAN TOMBOL WA TIDAK KENA EFEK LAIN */
.floating-wa a,
.floating-wa a:hover,
.floating-wa a:active,
.floating-wa a:focus {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
}