/*
Theme Name: Rejeki Cetak Theme
Theme URI: http://sampit.rejekicetak.co.id
Author: Siswoyo
Description: Tema custom khusus Rejeki Cetak Sampit dengan font Roboto dan layout modern.
Version: 1.7
Text Domain: rejeki-cetak
*/

/* --- RESET & BASIC SETUP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif; 
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- VARIABLES --- */
:root {
    --primary-blue: #0056b3; 
    --dark-blue: #003d80;
    --accent-orange: #ff9800;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

/* --- HEADER TRANSPARAN --- */

/* Wrapper Utama Header - Kunci agar tembus pandang */
.site-header {
    position: absolute; /* Mengambang di atas konten */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* Agar selalu di paling depan */
    background: transparent;
}

/* 1. Top Bar */
.top-bar {
    background-color: rgba(0, 0, 0, 0.3); /* Hitam transparan 30% */
    color: #eee;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 400;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span { margin-right: 15px; }
.top-info i { color: var(--accent-orange); margin-right: 5px; }
.top-social a { color: #fff; margin-left: 10px; transition: color 0.3s; }
.top-social a:hover { color: var(--accent-orange); }

/* 2. Main Header (Logo & Search) */
.main-header {
    background: transparent; /* Benar-benar bening */
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* UKURAN LOGO HEADER DIPERKECIL (MAX 55PX) */
.logo img {
    max-height: 55px; /* Sesuai permintaan 30% lebih kecil */
    width: auto;
}

.header-search {
    flex-grow: 1;
    max-width: 500px;
    position: relative;
}

.search-form { display: flex; }

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.search-btn:hover { background: #f57c00; }

.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.contact-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    backdrop-filter: blur(2px);
}

.contact-text h4 {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-text p {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

/* 3. Navigation Bar (Transparansi 50% & Sticky Logic) */
.nav-bar-wrapper {
    /* Transparansi 50% sesuai permintaan */
    background: rgba(0, 56, 115, 0.5); /* Biru tua dengan opacity 0.5 */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    z-index: 999;
    transition: all 0.4s ease; /* Transisi halus saat sticky */
}

/* Class 'sticky' ini ditambahkan oleh JS saat scroll */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 22, 89, 0.95); /* Lebih pekat saat sticky agar menu terbaca */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul { display: flex; gap: 0; }

nav a {
    display: block;
    color: white;
    font-weight: 500;
    padding: 15px 20px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

nav a:hover, nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-orange);
}

.nav-cta {
    background: var(--accent-orange);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background 0.3s;
    text-transform: uppercase;
}

.nav-cta:hover { background: #f57c00; transform: translateY(-2px); }

.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: white; padding: 10px; }

/* HERO SLIDER */
.hero-slider {
    position: relative;
    height: 700px; /* PERTINGGI HEADER agar gambar terlihat penuh di balik menu */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide.active { opacity: 1; }

.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 30, 60, 0.5); /* Overlay gelap agar tulisan putih terbaca */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    padding-top: 140px; /* Padding extra agar konten turun, tidak tertutup menu */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.hero-btn {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    transition: transform 0.2s;
}

.hero-btn:hover { transform: scale(1.05); }

/* PRODUCTS */
.section-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 10px; font-weight: 900; }
.section-title .line { width: 100px; height: 4px; background: var(--accent-orange); margin: 0 auto; border-radius: 2px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-blue);
}

.product-img {
    height: 220px;
    width: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-img i { font-size: 4rem; color: rgba(0,0,0,0.1); transition: 0.3s; }
.product-card:hover .product-img i { transform: scale(1.2); color: rgba(0, 86, 179, 0.2); }

.product-img-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.product-card:hover .product-img-bg { transform: scale(1.1); }

.product-content {
    padding: 25px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.product-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    font-weight: 400;
}

.product-link {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-link:hover { text-decoration: underline; }

/* FEATURED & MEDIUM PRODUCTS (PC) */
@media (min-width: 992px) {
    .featured-product {
        grid-column: 1 / -1;
        flex-direction: row !important;
        height: 380px;
    }

    .featured-product .product-img { width: 55%; height: 100%; }
    .featured-product .product-content { width: 45%; justify-content: center; padding: 40px; }
    .featured-product .product-title { font-size: 2rem; margin-bottom: 15px; }
    .featured-product .product-desc { font-size: 1.1rem; }
    .featured-product .product-img i { font-size: 6rem; }

    .medium-product {
        grid-column: span 2;
        flex-direction: row !important;
        height: 280px;
    }

    .medium-product .product-img { width: 45%; height: 100%; }
    .medium-product .product-content { width: 55%; justify-content: center; padding: 25px; }
    .medium-product .product-title { font-size: 1.5rem; }
    .medium-product .product-img i { font-size: 4rem; }
}

@media (max-width: 991px) {
    .medium-product {
        grid-column: span 1;
        flex-direction: column !important;
        height: auto;
    }
    .medium-product .product-img, .medium-product .product-content { width: 100%; }
    .medium-product .product-img { height: 220px; }
}

/* WHY US */
.why-us {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.feature-item {
    flex: 1 1 300px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.feature-item:hover { transform: translateY(-5px); }

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
    background: #fff3e0;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.feature-item h3 { font-weight: 700; margin-bottom: 10px; }

/* RATINGS */
.rating-section {
    background: white;
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.google-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px 25px;
    border-radius: 30px;
    margin-top: 10px;
    font-weight: 700;
    color: #555;
    font-size: 0.95rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.google-rating-badge:hover { transform: scale(1.05); }
.google-rating-badge i { color: #4285F4; }

.testimonial-slider {
    max-width: 800px;
    margin: 50px auto 20px;
    position: relative;
    min-height: 280px;
}

.testimonial-slide {
    position: absolute;
    top: 0; left: 0; width: 100%;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    transform: translateY(20px);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    position: relative;
}

.stars { color: #fbbc04; font-size: 1.4rem; margin-bottom: 20px; }
.review-text { font-size: 1.2rem; font-style: italic; color: #444; margin-bottom: 30px; font-weight: 400; }

.customer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.customer-info img {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.customer-info h4 { font-size: 1.1rem; color: var(--dark-blue); margin-bottom: 2px; font-weight: 700; }
.customer-info span { font-size: 0.85rem; color: #888; display: block; }

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.dot {
    width: 12px; height: 12px;
    background: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active { background: var(--primary-blue); transform: scale(1.2); }

/* BRIDGING SECTION */
.bridging-section {
    background-color: #fff;
    padding: 80px 0;
    border-top: 1px solid #eee;
}

.bridging-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.bridging-content { flex: 1; min-width: 300px; }
.bridging-content h2 { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 20px; font-weight: 900; }
.bridging-content p { font-size: 1.1rem; color: #555; margin-bottom: 30px; line-height: 1.8; }

.bridging-image { flex: 1; min-width: 300px; display: flex; justify-content: center; }
.bridging-image img { width: 100%; max-width: 500px; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

@media (max-width: 768px) {
    .bridging-container { flexDirection: column-reverse; text-align: center; }
    .bridging-content h2 { font-size: 1.8rem; }
}

/* PARTNERS SECTION */
.partners-section {
    background-color: #fff;
    padding: 50px 0;
    border-top: 1px solid #eee;
    overflow: hidden;
}

.partners-container { max-width: 1200px; margin: 0 auto; position: relative; }

.partners-track {
    display: flex;
    width: calc(250px * 34); 
    animation: scroll 80s linear infinite;
}

.partner-logo {
    width: 250px; padding: 0 20px;
    display: flex; align-items: center; justify-content: center;
}

.partner-logo img {
    width: 100%; max-width: 200px; height: auto;
    filter: grayscale(100%); opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-logo img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 17)); }
}

/* FOOTER - Updated Background Color */
footer {
    background-color: #001659; /* BIRU TUA SESUAI PERMINTAAN */
    /* Background Image tetap dipertahankan dengan blend mode */
    background-image: linear-gradient(rgba(0, 22, 89, 0.9), rgba(0, 22, 89, 0.95)), url('https://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/World_Map_1606.jpg/1280px-World_Map_1606.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: #ccc;
    padding: 70px 0 20px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.footer-col h3 {
    color: white; margin-bottom: 25px; font-size: 1.2rem;
    border-left: 4px solid var(--accent-orange);
    padding-left: 15px; text-transform: uppercase;
    letter-spacing: 1px; font-weight: 700;
}

.footer-links li { margin-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 12px; }
.footer-links li:last-child { border: none; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-orange); padding-left: 5px; }

.contact-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.contact-list i { color: var(--accent-orange); width: 25px; text-align: center; }

.social-icons { display: flex; gap: 10px; margin-top: 15px; }

.social-icon {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    color: white; transition: all 0.3s ease;
    font-size: 1.1rem; border: 1px solid rgba(255,255,255,0.2);
}

.social-icon.fb:hover { background-color: #1877F2; border-color: #1877F2; transform: translateY(-3px); }
.social-icon.ig:hover { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); border-color: transparent; transform: translateY(-3px); }
.social-icon.yt:hover { background-color: #FF0000; border-color: #FF0000; transform: translateY(-3px); }
.social-icon.wa:hover { background-color: #25D366; border-color: #25D366; transform: translateY(-3px); }

.copyright {
    text-align: center; margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px;
    font-size: 0.9rem; color: #aaa;
    position: relative; z-index: 2;
}

/* ANIMASI SHAKE TOMBOL WA */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(2px); }
}

/* KHUSUS RESPONSIVE HP: Header Kembali Normal (Putih) Agar Mudah Dibaca */
@media (max-width: 900px) {
    .site-header { position: relative; background: #fff; } 
    .top-bar, .main-header { background: #fff; color: #333; }
    .top-bar { border-bottom: 1px solid #eee; }
    .contact-text h4 { color: #888; }
    .contact-text p { color: #333; }
    .contact-icon-box { background: #e3f2fd; color: var(--primary-blue); }
    .logo { color: var(--primary-blue); }
    .search-input { background: white; border: 2px solid #eee; }
    .hero-slider { height: 400px; }
    .hero-content { padding-top: 20px; }
    
    .header-container { flex-direction: column; gap: 15px; text-align: center; }
    .header-search { width: 100%; order: 2; }
    .header-contact { display: none; }
    .nav-container { padding: 10px 20px; }
    .mobile-menu-btn { display: block; margin-right: auto; }
    
    nav {
        position: absolute; top: 100%; left: 0;
        width: 100%; background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none; flex-direction: column;
    }
    
    nav.active { display: flex; }
    nav ul { flex-direction: column; width: 100%; }
    nav a { color: #333; border-bottom: 1px solid #eee; padding: 15px 20px; }
    .nav-cta { margin: 15px 20px; width: fit-content; align-self: center; }
}

@media (max-width: 768px) {
    .top-bar-container { flex-direction: column; gap: 5px; }
    .hero h1 { font-size: 1.8rem; }
    .partners-track { animation: scroll 15s linear infinite; }
    
    .featured-product { height: auto !important; flex-direction: column !important; }
    .featured-product .product-img, .featured-product .product-content { width: 100% !important; }
    .featured-product .product-img { height: 250px; }
}