:root {
  --jago-coffee: #5A3825;
  --jago-dark: #1A1A1A;
  --jago-gray: #555;
  --jago-light: #f8f9fa;
  --jago-accent: #b86426;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: auto !important;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--jago-dark);
  line-height: 1.6;
  background-color: #fff;
}

/* ====================================
   NAVBAR
   ==================================== */
#mainNavbar {
  background: transparent;
  transition: all 0.4s ease;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

#mainNavbar.scrolled {
  background-color: var(--jago-coffee) !important;
  padding: 0.75rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-weight: 800;
  font-size: 2rem;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-link {
  color: white !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

/* ====================================
   HERO SPESIFIK PER HALAMAN – LANGSUNG TANPA .hero
   ==================================== */

/* BERANDA */
.hero-home {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('/test/assets/images/kops.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 80px;
}

.hero-home::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.hero-home > .container {
  position: relative;
  z-index: 2;
}

/* MENU */
.hero-menu {
  min-height: 60vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('/test/assets/images/p.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 80px;
}

.hero-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.hero-menu > .container {
  position: relative;
  z-index: 2;
}

/* HOW IT WORKS */
.hero-how {
  min-height: 60vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('/test/assets/images/how-hero.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 80px;
}

.hero-how::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.hero-how > .container {
  position: relative;
  z-index: 2;
}

/* ABOUT US */
.hero-about {
  min-height: 70vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('/test/assets/images/about-hero.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 80px;
}

.hero-about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.hero-about > .container {
  position: relative;
  z-index: 2;
}

/* BLOG */
.hero-blog {
  min-height: 60vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('/test/assets/images/blog-hero.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 80px;
}

.hero-blog::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.hero-blog > .container {
  position: relative;
  z-index: 2;
}

/* TEXT HERO (SAMA UNTUK SEMUA) */
.hero-home h1, .hero-menu h1, .hero-how h1, .hero-about h1, .hero-blog h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-home p, .hero-menu p, .hero-how p, .hero-about p, .hero-blog p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ====================================
   ABOUT STORY IMAGE
   ==================================== */
.about-story-img {
  max-width: 500px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 24px;
}

/* ====================================
   SECTION TITLE & SUBTITLE
   ==================================== */
.section-title {
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--jago-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--jago-gray);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ====================================
   PRODUCT & CAROUSEL
   ==================================== */
.product-carousel {
  overflow: visible;
  padding: 0 60px;
  position: relative;
}

.carousel-wrapper {
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.product-item {
  flex: 0 0 25%;
  padding: 1rem;
  text-align: center;
}

.product-img {
  width: 100%;
  max-width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.product-item:hover .product-img {
  transform: scale(1.05);
}

.product-name {
  color: #222;
  font-size: 1.1rem;
  margin-top: 1rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
}

.price {
  color: var(--jago-coffee);
  font-weight: 700;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid var(--jago-coffee);
  color: var(--jago-coffee);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
  background: var(--jago-coffee);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Dots */
.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: var(--jago-coffee);
  transform: scale(1.2);
}

/* Badge */
.badge-unggulan { background:#28a745; color:white; }
.badge-nonunggulan { background:#6c757d; color:white; }

/* ====================================
   BLOG
   ==================================== */
.blog-img {
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
}

.blog-post .badge {
  font-size: .85rem;
}

.blog-post a {
  text-decoration: none;
  color: var(--jago-coffee);
  font-weight: 600;
}

.blog-post a:hover {
  text-decoration: underline;
}

.pagination .page-link {
  color: var(--jago-coffee);
}

.pagination .page-item.active .page-link {
  background: var(--jago-coffee);
  border-color: var(--jago-coffee);
  color: #fff;
}

/* ====================================
   FOOTER
   ==================================== */
/* FOOTER – PERBAIKAN LAYOUT */
.footer-section {
  background-color: var(--jago-coffee);
  color: #ccc;
  padding-top: 3rem !important;
  padding-bottom: 2rem !important;
}

.footer-logo {
  font-weight: 800;
  font-size: 2.2rem;
  color: white;
  letter-spacing: -1px;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-icons img {
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

/* ====================================
   FOOTER – SOSIAL ICON RAPIH
   ==================================== */
.footer-social-img {
  width: 35px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer-social-img:hover {
  transform: scale(1.15);
}

/* Responsif: Mobile lebih kecil */
@media (max-width: 576px) {
  .footer-social-img {
    width: 28px;
    height: 28px;
  }
}

/* Responsif: Pastikan logo tetap di kiri pada mobile */
@media (max-width: 768px) {
  .footer-logo {
    font-size: 1.8rem;
  }
  .footer-section .row > div {
    text-align: center !important;
  }
  .social-icons {
    justify-content: center !important;
    margin-top: 1rem;
  }
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
  .hero-home h1, .hero-menu h1, .hero-how h1, .hero-about h1, .hero-blog h1 {
    font-size: 2.5rem;
  }
  .hero-home p, .hero-menu p, .hero-how p, .hero-about p, .hero-blog p {
    font-size: 1rem;
  }
  .navbar-brand { font-size: 1.6rem; }
  .product-carousel { padding: 0 30px; }
  .carousel-btn { display: none; }
  .product-img { max-width: 160px; height: 210px; }
  .blog-img { height: 180px; }
}



/* TANGGAL BLOG - WARNA ABU */
.blog-date {
  color: #888 !important;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}


/* ====================================
   BLOG CARD – BARU & MENARIK
   ==================================== */
.blog-card {
  transition: all 0.3s ease;
  border: none !important;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(90, 56, 37, 0.15) !important;
}
.blog-img-wrapper {
  height: 220px;
  overflow: hidden;
}
.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-img {
  transform: scale(1.08);
}
.blog-date-badge {
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  z-index: 2;
}
.blog-title {
  color: #1a1a1a;
  line-height: 1.3;
}
.blog-card .btn-outline-jago {
  border: 2px solid var(--jago-coffee);
  color: var(--jago-coffee);
  font-size: 0.9rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.blog-card .btn-outline-jago:hover {
  background: var(--jago-coffee);
  color: white;
  transform: translateY(-2px);
}

/* Pagination */
.pagination .page-link {
  color: var(--jago-coffee);
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  font-weight: 600;
}
.pagination .page-item.active .page-link {
  background: var(--jago-coffee);
  border-color: var(--jago-coffee);
  color: white;
}
.pagination .page-link:hover {
  background: #f8f9fa;
  border-color: var(--jago-coffee);
}

/* Responsif Blog */
@media (max-width: 992px) {
  .blog-img-wrapper { height: 200px; }
}
@media (max-width: 768px) {
  .blog-img-wrapper { height: 180px; }
  .blog-title { font-size: 1.1rem; }
}

/* ====================================
   COFFEE BUSINESS CLUSTERS – STICKY NOTE DI ATAS GAMBAR
   ==================================== */
.coffee-clusters {
  background: #ffffff;
  padding: 5rem 0;
}
.cluster-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: #5A3825;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}
.cluster-subtitle {
  font-size: 1.15rem;
  color: #8B6F47;
  font-style: italic;
  margin-bottom: 4rem;
}
.cluster-block {
  margin-bottom: 5rem;
}
.cluster-name {
  font-size: 2rem;
  font-weight: 700;
  color: #5A3825;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.cluster-desc {
  font-size: 1rem;
  color: #5A3825;
  font-style: italic;
  margin-bottom: 0;
}

/* GALLERY – 4 FOTO HORIZONTAL */
.cluster-gallery {
  display: flex;
  justify-content: space-between;
  gap: 1.8rem;
  flex-wrap: nowrap;
}
.cluster-item {
  flex: 1;
  max-width: 22%;
}
.polaroid-card {
  background: white;
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  position: relative;
  transition: transform 0.3s ease;
}
.polaroid-card:hover {
  transform: translateY(-10px);
}
.polaroid-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  image-rendering: -webkit-optimize-contrast; /* Chrome */
  image-rendering: crisp-edges;                /* Firefox */
  image-rendering: pixelated;                  /* Jika ingin retro */
  image-rendering: auto;                       /* Default tajam */
}

/* STICKY NOTE – DI ATAS GAMBAR, TIDAK TERTUTUP */
.sticky-note {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFD700;
  color: #000000;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  z-index: 100;
  white-space: nowrap;
}
.gallery-line {
  height: 3px;
  background: #D4A574;
  margin-top: 2rem;
  border-radius: 2px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .cluster-gallery {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  .cluster-item {
    flex: 0 0 48%;
    max-width: 48%;
    margin-bottom: 2.5rem;
  }
  .polaroid-card img {
    height: 160px;
  }
  .sticky-note {
    top: -18px;
    font-size: 0.8rem;
    padding: 6px 16px;
  }
}
@media (max-width: 576px) {
  .cluster-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .polaroid-card img {
    height: 180px;
  }
  .cluster-name {
    font-size: 1.6rem;
  }
}

/* ====================================
   WHATSAPP ORDER BUTTON – DI BAWAH MENU
   ==================================== */
.whatsapp-order-section {
  text-align: center;
  padding: 3rem 0 2rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #5A3825;
  color: white !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.btn-whatsapp i {
  font-size: 1.4rem;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  color: white;
}

.btn-whatsapp:active {
  transform: translateY(-1px);
}

/* Responsif */
@media (max-width: 576px) {
  .btn-whatsapp {
    font-size: 1rem;
    padding: 12px 24px;
  }
  .btn-whatsapp i {
    font-size: 1.2rem;
  }
}