/* File: assets/css/style.css */

/* === ATURAN BACKGROUND UTAMA === */
body {
  font-family: 'Montserrat', sans-serif;
  background-image: url('../images/bg.image.jpeg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-color: #fdf8e9; 
}

/* === CSS UNTUK KETERBACAAN KONTEN DI ATAS BACKGROUND BARU === */
.card,
.nilai-utama-card,
.contact-info-card, 
.legal-info-card,
.filter-controls .card-body {
  background-color: rgba(255, 255, 255, 0.9) !important;
}
.navbar.bg-white,
.sticky-top.bg-white {
   background-color: rgba(255, 255, 255, 0.95) !important;
}
.catalog-header {
    background: none !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0,0,0,0.08);
}
.catalog-header::before {
    display: none;
}
/* === AKHIR DARI CSS BARU === */


/* --- STYLING ASLI ANDA (DENGAN PENYESUAIAN) --- */
.navbar {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.8rem;
}

.navbar .nav-link {
    color: #343a40;
    transition: color 0.3s ease-in-out;
    margin: 0 5px;
    padding: 0.5rem 1rem;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: #007bff;
    font-weight: 700;
}

.hero-grid-item {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-grid-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.hero-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

.hero-grid-item .content {
    position: relative;
    z-index: 2;
}

.hero-grid-item .tagline {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.hero-grid-item h3 {
    font-family: 'Lora', serif;
    font-weight: 700;
}

.hero-grid-item p {
    margin-bottom: 1rem;
}

#hero-main {
    min-height: 500px;
}

#hero-sub1, #hero-sub2 {
    min-height: 242px;
}

.sticky-top {
    transition: top 0.3s;
}

.card-img-container {
    position: relative;
    overflow: hidden;
    border-top-left-radius: var(--bs-card-inner-border-radius);
    border-top-right-radius: var(--bs-card-inner-border-radius);
}

.price-ribbon {
    position: absolute;
    z-index: 2;
    top: 22px;
    right: -38px;
    width: 160px;
    padding: 6px 0;
    background-color: #0d6efd;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.card.h-100 {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card.h-100:hover {
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 12px 28px rgba(0,0,0,0.2) !important;
}

.card .card-img-top {
    transition: transform 0.3s ease-in-out;
}

.card.h-100:hover .card-img-top {
    transform: scale(1.08);
}

footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    font-size: 0.95rem;
}

footer h5 {
    font-family: 'Lora', serif;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #ffffff;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

footer a.text-white {
    transition: color 0.3s ease;
}

footer a.text-white:hover {
    color: #3498db !important;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.footer-contact-list li i {
    width: 25px;
    font-size: 1.1rem;
    margin-top: 4px;
    color: #3498db;
}

.social-icons a {
    font-size: 1.6rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    transform: scale(1.2) rotate(10deg);
}

.footer-bottom {
    background-color: #233140;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.profile-section-header {
    font-family: 'Lora', serif;
    font-weight: 700;
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 10px;
    display: inline-block;
}

.nilai-utama-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nilai-utama-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.nilai-utama-card i {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 1rem;
    display: block;
}

.filter-controls {
    border: none;
}

.contact-info-card, .legal-info-card {
    border-radius: 0.5rem;
    height: 100%;
    border-left: 5px solid #0d6efd;
}

.contact-info-card a {
    text-decoration: none;
    color: #343a40;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: #0d6efd;
}

.contact-info-card i {
    font-size: 1.25rem;
    color: #0d6efd;
}

/* === KODE CSS HEADER RESPONSIVE ANDA === */
.logo-img {
  max-width: 200px;
  height: auto;
  transition: max-width 0.3s ease-in-out;
}

.brand-text {
  font-family: "Abel", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: #2c3e50;
  text-decoration: none;
  transition: font-size 0.3s ease-in-out;
  margin-left: -50px; 
}

.navbar-brand:hover .brand-text {
  color: #007bff;
}

@media (min-width: 1200px) {
  .logo-img {
    max-width: 250px;
  }
}

@media (max-width: 991.98px) {
  .logo-img {
    max-width: 150px;
  }
  .brand-text {
    font-size: 1.5rem;
    top: 0; 
  }
}

/* === FIX UNTUK BACKGROUND IMAGE DI MOBILE === */
/* Aturan ini hanya akan aktif pada layar dengan lebar maksimal 767.98px (ukuran ponsel) */
@media (max-width: 767.98px) {
  body {
    /* Mengubah 'fixed' menjadi 'scroll' agar background terlihat di mobile */
    background-attachment: scroll;
  }
}