/* Reset dasar */
body {
    margin: 0;
    /* padding-top: 80px; - Dihapus karena akan diatur di media query */
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    color: #333;
}
  
/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #da291c;
    color: #fff;
    z-index: 1000;
    animation: fadeIn 2s ease-in;
}
  
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 50px;
    width: auto;
}

  
/* Tombol Hamburger */
.menu-btn {
    position: relative;
    width: 30px; /* Ukuran sedikit lebih besar */
    height: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1101;
}

.menu-btn .bar {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff; /* Warna putih agar kontras dengan header merah */
    border-radius: 10px;
    /* Transisi untuk animasi rotasi dan pergerakan */
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.4s ease;
    transform-origin: center; /* Pusat transformasi */
}

/* Sembunyikan Checkbox secara visual */
.menu-toggle {
    display: none;
}

/* KONDISI: Ketika Checkbox di-klik (Menu Terbuka) */

/* Bar atas: berputar 45 derajat dan bergerak ke tengah */
.menu-toggle:checked ~ .menu-btn .bar.top {
    transform: translateY(10.5px) rotate(45deg); /* Y dihitung: (24px - 3px) / 2 = 10.5px */
}

/* Bar tengah: menghilang */
.menu-toggle:checked ~ .menu-btn .bar.middle {
    opacity: 0;
    transform: scaleX(0);
}

/* Bar bawah: berputar -45 derajat dan bergerak ke tengah */
.menu-toggle:checked ~ .menu-btn .bar.bottom {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Sidebar (default: untuk HP) */
.sidebar {
    position: fixed;
    top: 0;
    /* Atur menu agar berada di sebelah kanan header, dan tidak menutupi logo/header */
    right: 0; 
    width: 250px; 
    max-width: 80%; /* Pastikan tidak melebihi lebar layar */
    height: 100%;
    background: rgba(34, 34, 34, 0.95); /* Sedikit transparansi */
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Agar menu tidak di bawah header */
    z-index: 1100;
    
    /* Sembunyikan menu di luar layar */
    transform: translateX(100%); 
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transisi slide-in yang lebih bagus */
}

/* Tampilkan menu ketika checkbox di-klik */
.menu-toggle:checked ~ .sidebar {
    transform: translateX(0);
    opacity: 1; /* Transparansi dihapus jika menu terbuka */
}

/* Gaya Tautan Menu */
.sidebar a {
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    /* Reset gaya lama */
    background: transparent;
    border-radius: 0;
    font-weight: normal;
    margin-right: 30px;
}

.sidebar a:last-child {
    border-bottom: none;
}

.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #da291c; /* Aksen warna MU saat hover */
}

/* Ganti Close Button lama dengan efek baru (jika Anda masih punya .close-btn) */
.close-btn { 
    display: none !important; /* Hapus tombol silang manual */
}

  
/* ============================= */
/* Desktop Mode */
@media (min-width: 768px) {
    /* Hapus Padding Body agar konten rapat ke header */
    body {
        padding-top: 80px; 
    }

    /* Tampilkan menu-btn dan sembunyikan sidebar di desktop */
    .menu-btn, .menu-toggle {
        display: none !important;
    }

    /* Buat menu sidebar menjadi menu inline di desktop */
    .sidebar {
        position: static;
        width: auto;
        height: auto;
        transform: none; /* Hapus efek slide */
        opacity: 1;
        box-shadow: none;
        background: transparent;
        flex-direction: row;
        padding-top: 0;
        gap: 20px; /* Jarak antar item menu */
    }

    .sidebar a {
        padding: 0;
        border-bottom: none;
        color: #fff;
        font-weight: 500;
    }

    .sidebar a:hover {
        background-color: transparent;
        color: #f1f1f1; /* Sedikit perubahan warna */
        border-bottom: 2px solid #fff; /* Efek garis bawah saat hover */
        padding-bottom: 5px;
    }
    /* Hapus close-btn lama di desktop */
    .close-btn {
        display: none;
    }
}
  
/* Hero */
.hero {
    background: url('old\ trafford.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 300px 20px 80px;
}
  
/* Produk */
.produk-section {
    padding: 50px 20px;
    text-align: center;
}
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.card h3 {
    margin: 10px 0;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #da291c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}
.btn:hover {
    background: #a50d0d;
}
  
/* Produk - gambar bolak balik + zoom */
.img-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
}
.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease; /* Tambah filter */
}
.img-container .back {
    opacity: 0;
}
.img-container:hover .front {
    opacity: 0;
    transform: scale(1.05);
}
.img-container:hover .back {
    opacity: 1;
    transform: scale(1.05);
}

/* Grayscale for Product Images on Hover */
.card:hover .img-container img {
    filter: grayscale(0%);
}
  
/* Galeri */
.galeri-section {
    padding: 50px 20px;
    text-align: center;
}
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.galeri-grid img {
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.3s ease /* Tambah filter */
    
    
}
.galeri-grid a:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    
}
  
/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
  }
  .lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
  .lightbox:target {
    display: flex;
  }
  .lightbox .close {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
  }
  .lightbox .close:hover {
    color: #da291c;
  }
  
  
/* Tentang */
.tentang-section {
    padding: 50px 20px;
    background: #fff;
    /* text-align: center; - Dihapus karena akan diatur di container */
}

/* Styling Baru untuk Tentang (Flexbox) */
.tentang-container {
    display: flex;
    flex-direction: column; /* Default: susun vertikal untuk mobile */
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px; /* Jarak antar elemen */
}

.tentang-text h2 {
    margin-top: 0;
    text-align: center;
}

.tentang-image img {
    width: 100%; /* Gambar memenuhi lebar wadah */
    height: auto;
    max-height: 400px; /* Batasi tinggi gambar */
    object-fit: cover;
    border-radius: 10px; /* Sudut membulat agar lebih modern */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
    /* === Penambahan untuk Grayscale === */
    filter: grayscale(100%); /* Default: Gambar abu-abu */
    transition: filter 0.5s ease; /* Transisi halus saat hover */
}

/* Kondisi saat di-hover, gambar kembali berwarna */
.tentang-image img:hover {
    filter: grayscale(0%);
}

/* Media Queries untuk Desktop/Layar Besar (Gambar disamping Teks) */
@media (min-width: 768px) {
    
    .tentang-container {
        flex-direction: row; /* Susun horizontal untuk desktop */
        text-align: left;
    }

    .tentang-text, .tentang-image {
        flex: 1; /* Kedua elemen memiliki lebar yang sama */
        min-width: 0; /* Penting untuk fleksibilitas */
    }

    .tentang-text {
        order: 1; /* Teks di sebelah kiri */
    }

    .tentang-image {
        order: 2; /* Gambar di sebelah kanan */
    }
    
    .tentang-text h2 {
        text-align: left;
    }
}
  
/* Kontak */
.kontak-section {
    padding: 50px 20px;
    background: #eee;
    text-align: center;
}
.kontak-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.kontak-form input, .kontak-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.kontak-form button {
    padding: 10px;
    background: #da291c;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.kontak-form button:hover {
    background: #a50d0d;
}
.alt-info {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}
  
/* ====== SOCIAL LINKS ====== */
/* Social links pakai gambar */
.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .social-links a img {
    width: 50px;         
    height: 50px;
    border-radius: 50%;  
    object-fit: cover;   
    background: #f1f1f1; 
    padding: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  
  .social-links a img:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
  }

  
/* Footer */
.site-footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 15px;
}