/* ===== SHARED STYLES — JOJONG COFFEE ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --cream: #F5F0E8;
  --dark: #1C1A14;
  --green: #2D5016;
  --green-light: #4A7C2F;
  --gold: #C8A96E;
  --tan: #D4C4A0;
  --white: #FEFCF8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

/* Arabic font override */
body.ar {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

/* ===== SLIDE CURTAIN ===== */
#slide-curtain {
  position: fixed;
  top: 72px; left: 0;
  width: 4px; height: calc(100vh - 72px);
  background: var(--gold);
  z-index: 9998;
  pointer-events: none;
}
#slide-curtain.animate {
  animation: curtainSweep 0.55s cubic-bezier(0.86,0,0.07,1) forwards;
}
@keyframes curtainSweep {
  0%   { left: 0; width: 3px; opacity: 1; }
  40%  { left: 0; width: 100vw; opacity: 0.18; }
  100% { left: 100vw; width: 3px; opacity: 0; }
}

/* ===== NAV — Dark green like Ted's Coffee ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 0 60px;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--green);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,110,0.15);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; }
.nav-logo img { height: 52px; width: auto; display: block; border-radius: 4px; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px; color: var(--cream); letter-spacing: 1px;
}
.nav-logo-text span { color: var(--gold); }

.nav-center { display: flex; gap: 32px; list-style: none; }
.nav-center a {
  text-decoration: none;
  color: rgba(245,240,232,0.82);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  cursor: pointer;
}
.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-center a:hover,
.nav-center a.active { color: var(--cream); }
.nav-center a:hover::after,
.nav-center a.active::after { width: 100%; }

/* Active nav item — pill style like Ted's "About us" */
.nav-center a.active {
  background: rgba(245,240,232,0.15);
  padding: 6px 16px;
  border-radius: 20px;
  color: var(--cream);
}
.nav-center a.active::after { display: none; }

/* ===== LANGUAGE DROPDOWN ===== */
.lang-dropdown { position: relative; }
.lang-selected {
  display: flex; align-items: center; gap: 8px;
  background: none;
  border: 1px solid rgba(245,240,232,0.35);
  color: var(--cream);
  padding: 8px 14px;
  font-family: 'Jost', sans-serif; font-size: 12px;
  font-weight: 500; letter-spacing: 1px;
  cursor: pointer; transition: all 0.3s; white-space: nowrap;
  border-radius: 4px;
}
.lang-selected:hover { background: rgba(245,240,232,0.1); border-color: var(--gold); }
.lang-arrow { font-size: 10px; transition: transform 0.3s; color: var(--gold); }
.lang-dropdown.open .lang-arrow { transform: rotate(180deg); }
.lang-options {
  display: none; position: absolute;
  top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid rgba(200,169,110,0.3);
  min-width: 180px; box-shadow: 0 12px 32px rgba(0,0,0,0.18); z-index: 9999;
  max-height: 320px; overflow-y: auto;
  border-radius: 4px;
}
.lang-options.show { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 16px; background: none; border: none;
  border-bottom: 1px solid rgba(200,169,110,0.1);
  text-align: left; font-family: 'Jost', sans-serif;
  font-size: 13px; cursor: pointer; color: var(--dark); transition: background 0.2s;
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: var(--cream); color: var(--green); }
.lang-option.active { color: var(--green); font-weight: 500; }

/* ===== PAGE HERO BANNER ===== */
.page-hero {
  padding-top: 72px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8A96E' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { text-align: center; position: relative; z-index: 1; }
.page-hero-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--green);
  line-height: 1.1;
}
.page-hero h1 em { color: var(--gold); font-style: italic; }

/* ===== MARQUEE ===== */
.marquee-wrap { background: var(--green); padding: 14px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 22s linear infinite; }
.marquee-item { color: var(--cream); font-size: 11px; letter-spacing: 4px; text-transform: uppercase; padding: 0 40px; }
.marquee-item span { color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--green); color: var(--cream);
  padding: 15px 32px; text-decoration: none;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  transition: all 0.3s; font-family: 'Jost', sans-serif; font-weight: 500;
  border: none; cursor: pointer; display: inline-block;
  border-radius: 30px;
}
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,80,22,0.25); }

.btn-outline {
  border: 1.5px solid var(--dark); color: var(--dark);
  padding: 15px 32px; text-decoration: none;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  transition: all 0.3s; font-family: 'Jost', sans-serif;
  background: none; cursor: pointer; display: inline-block;
  border-radius: 30px;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ===== SECTION COMMON ===== */
.section-tag { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: block; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(28px, 3vw, 44px); line-height: 1.2; color: var(--dark); margin-bottom: 24px; }
.section-title em { color: var(--green); font-style: italic; }
.section-body { font-size: 15px; line-height: 1.8; color: #5a5444; font-weight: 300; margin-bottom: 20px; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(36px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: var(--cream); padding: 60px 80px 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 40px; border-bottom: 1px solid rgba(245,240,232,0.1); margin-bottom: 36px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--cream); margin-bottom: 10px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 13px; color: rgba(245,240,232,0.4); font-weight: 300; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(245,240,232,0.3); letter-spacing: 1px; }
.footer-bottom a { color: var(--gold); text-decoration: none; }

/* ===== LANGUAGE VISIBILITY =====
   Default: tampilkan id, sembunyikan semua yang lain */
.lang-id { display: inline; }
.lang-en,
.lang-zh,
.lang-ja,
.lang-ms,
.lang-ru,
.lang-ar { display: none; }

/* English */
body.en .lang-id, body.en .lang-zh, body.en .lang-ja,
body.en .lang-ms, body.en .lang-ru, body.en .lang-ar { display: none; }
body.en .lang-en { display: inline; }

/* Chinese */
body.zh .lang-id, body.zh .lang-en, body.zh .lang-ja,
body.zh .lang-ms, body.zh .lang-ru, body.zh .lang-ar { display: none; }
body.zh .lang-zh { display: inline; }

/* Japanese */
body.ja .lang-id, body.ja .lang-en, body.ja .lang-zh,
body.ja .lang-ms, body.ja .lang-ru, body.ja .lang-ar { display: none; }
body.ja .lang-ja { display: inline; }

/* Malay */
body.ms .lang-id, body.ms .lang-en, body.ms .lang-zh,
body.ms .lang-ja, body.ms .lang-ru, body.ms .lang-ar { display: none; }
body.ms .lang-ms { display: inline; }

/* Russian */
body.ru .lang-id, body.ru .lang-en, body.ru .lang-zh,
body.ru .lang-ja, body.ru .lang-ms, body.ru .lang-ar { display: none; }
body.ru .lang-ru { display: inline; }

/* Arabic */
body.ar .lang-id, body.ar .lang-en, body.ar .lang-zh,
body.ar .lang-ja, body.ar .lang-ms, body.ar .lang-ru { display: none; }
body.ar .lang-ar { display: inline; }

/* ===== RTL ARABIC ===== */
body.ar nav { flex-direction: row-reverse; }
body.ar .nav-center { flex-direction: row-reverse; }
body.ar .footer-top { flex-direction: row-reverse; }
body.ar .footer-bottom { flex-direction: row-reverse; }
body.ar .lang-options { right: auto; left: 0; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.93);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px; background: none;
  border: none; color: var(--cream); font-size: 36px; cursor: pointer; opacity: 0.6; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,0.4); text-transform: uppercase; white-space: nowrap; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-18px); } }
@keyframes zoomIn { from { transform: scale(0.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============================================================
   RESPONSIVE — JOJONG COFFEE
   Mobile-first breakpoints:
   - ≤768px  : HP / mobile
   - ≤900px  : tablet kecil (sudah ada sebagian di Beranda)
   ============================================================ */

/* ===== HAMBURGER MENU ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 997;
}
.nav-mobile-overlay.open { display: block; }

/* ===== SHARED FOOTER RESPONSIVE ===== */
@media (max-width: 768px) {
  /* --- NAV --- */
  nav {
    padding: 0 16px;
    height: 60px;
  }

  .nav-center {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--green);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    z-index: 998;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(200,169,110,0.2);
  }
  .nav-center.open { display: flex; }
  .nav-center li { width: 100%; }
  .nav-center a {
    display: block;
    padding: 13px 24px !important;
    font-size: 13px;
    letter-spacing: 1.5px;
    border-radius: 0 !important;
    background: none !important;
  }
  .nav-center a:hover, .nav-center a.active {
    background: rgba(245,240,232,0.1) !important;
  }
  .nav-center a::after { display: none; }

  .nav-hamburger { display: flex; }

  .lang-selected { padding: 6px 10px; font-size: 11px; }
  #langLabel { display: none; }

  /* Slide curtain adjust */
  #slide-curtain { top: 60px; height: calc(100vh - 60px); }

  /* --- FOOTER --- */
  footer { padding: 40px 20px 28px; }
  .footer-top {
    flex-direction: column;
    gap: 24px;
    padding-bottom: 28px;
    margin-bottom: 24px;
  }
  .footer-top > div:last-child { text-align: left !important; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* --- PAGE HERO --- */
  .page-hero { height: 200px; padding-top: 60px; }
  .page-hero h1 { font-size: clamp(28px, 8vw, 44px); }

  /* --- BUTTONS --- */
  .btn-primary, .btn-outline { padding: 13px 24px; font-size: 11px; }

  /* --- MARQUEE --- */
  .marquee-item { font-size: 10px; padding: 0 24px; }
}

/* ===== BERANDA ===== */
@media (max-width: 768px) {
  /* Hero */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left {
    padding: 80px 20px 40px;
    order: 1;
  }
  .hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .hero-sub { font-size: 14px; max-width: 100%; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions a { text-align: center; }
  .hero-right {
    order: 2;
    min-height: 300px;
    padding: 20px;
  }
  .hero-img-box { width: 70%; aspect-ratio: 1; }
  .review-card { display: none; }
  .bean-1, .bean-2, .bean-3, .bean-4, .bean-5 { display: none; }
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
  }
  .stat-item {
    padding-right: 16px;
    margin-right: 16px;
  }
  .stat-num { font-size: 22px; }

  /* About strip */
  .about-strip { grid-template-columns: 1fr; gap: 32px; padding: 60px 20px; }
  .about-features { grid-template-columns: 1fr 1fr; gap: 14px; }
  .about-card { padding: 28px 20px; }
  .about-card::before { display: none; }

  /* Process strip */
  .process-strip { padding: 60px 20px; }
  .process-strip-header { margin-bottom: 48px; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-steps::before { display: none; }
  .step-num { width: 52px; height: 52px; font-size: 18px; }

  /* CTA */
  .cta-strip { padding: 60px 20px; }
  .cta-buttons { flex-direction: column; align-items: center; gap: 12px; }
}

/* ===== TENTANG ===== */
@media (max-width: 768px) {
  .about-main-section,
  .about-main { padding: 60px 20px !important; }

  /* Grid 2-kolom → 1-kolom */
  .about-main-section [style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] { 
    display: block !important; 
  }

  /* Stat grid */
  .about-stats-grid,
  div[class*="stats-grid"] { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }

  /* Team grid */
  .team-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }

  /* Values/cert grid */
  .values-grid,
  .cert-grid { grid-template-columns: 1fr !important; }
}

/* ===== PRODUK ===== */
@media (max-width: 768px) {
  .product-section { padding: 60px 20px !important; }

  /* Product cards grid */
  .product-grid { grid-template-columns: 1fr !important; gap: 20px !important; }

  /* Spec section */
  .spec-section { padding: 60px 20px !important; }
  .spec-section > div { grid-template-columns: 1fr !important; gap: 16px !important; }
  .spec-card { padding: 20px !important; }

  /* About main produk */
  .about-main { padding: 60px 20px !important; }
  .about-main > div { flex-direction: column !important; gap: 24px !important; }

  /* Stats section */
  .stats-section { padding: 40px 20px !important; }
  .stats-section > div { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }

  /* Cert section */
  .cert-section { padding: 60px 20px !important; }
  .cert-section .cert-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* FAQ */
  .faq-section { padding: 60px 20px !important; }

  /* Marketplace section */
  .marketplace-section { padding: 40px 20px !important; }
  .marketplace-links { flex-wrap: wrap !important; }

  /* Form row */
  .form-row { grid-template-columns: 1fr !important; }
}

/* ===== GALERI ===== */
@media (max-width: 768px) {
  .gallery-section { padding: 60px 20px !important; }

  /* Filter buttons */
  .gallery-filter { flex-wrap: wrap !important; gap: 8px !important; padding: 16px 20px !important; }
  .gallery-filter button { font-size: 10px !important; padding: 6px 14px !important; }

  /* Gallery grid → 2 kolom di HP */
  .gallery-grid { 
    grid-template-columns: 1fr 1fr !important; 
    gap: 8px !important;
    padding: 0 20px 60px !important;
  }
  .gallery-item img { height: 160px !important; }
  .gallery-caption { padding: 10px 12px !important; }
}

/* ===== VIDEO ===== */
@media (max-width: 768px) {
  .video-main { padding: 60px 20px !important; }

  /* Featured video grid */
  .video-main > div[style*="grid-template-columns: 2fr 1fr"],
  .video-featured-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Video player */
  .video-player { min-height: 220px !important; }
  .video-player iframe { height: 220px !important; }

  /* Playlist */
  .video-playlist { max-height: 240px !important; }
  .playlist-item { padding: 12px !important; }

  /* Video grid (bawah) */
  .video-grid { 
    grid-template-columns: 1fr 1fr !important; 
    gap: 12px !important;
    padding: 0 20px 60px !important;
  }

  /* YT form */
  .yt-form-section { padding: 60px 20px !important; }
  .yt-input-group { flex-direction: column !important; gap: 10px !important; }
  .yt-input-group input { border-radius: 4px !important; }
  .yt-input-group button { border-radius: 4px !important; text-align: center !important; }
}

/* ===== PROSES ===== */
@media (max-width: 768px) {
  .process-main { padding: 60px 20px !important; }

  /* Big process steps */
  .process-step-row {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 32px 0 !important;
  }
  .process-step-row.reverse { grid-template-columns: 1fr !important; }
  .process-step-row.reverse .step-num-big { order: -1 !important; }

  .step-num-big { 
    width: 72px !important; 
    height: 72px !important; 
    font-size: 26px !important; 
  }
  .step-visual { padding: 28px 20px !important; min-height: 160px !important; }

  /* Quality grid */
  .quality-section { padding: 60px 20px !important; }
  .quality-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Timeline */
  .timeline-section { padding: 60px 20px !important; }
  .tl-item { 
    grid-template-columns: 1fr !important; 
    text-align: left !important;
    padding-left: 24px !important;
    border-left: 2px solid var(--gold) !important;
    position: relative !important;
    margin-bottom: 32px !important;
  }
  .tl-dot { 
    display: none !important;
  }
  .tl-right { display: none !important; }

  /* Cert bar */
  .cert-bar { padding: 36px 20px !important; }
  .cert-bar-inner { flex-direction: column !important; gap: 20px !important; align-items: flex-start !important; }
  .cert-bar-list { flex-wrap: wrap !important; gap: 12px !important; }
}

/* ===== KONTAK ===== */
@media (max-width: 768px) {
  .contact-main { 
    padding: 60px 20px !important; 
    grid-template-columns: 1fr !important; 
    gap: 40px !important;
  }

  /* Map */
  .map-section { padding: 0 20px 60px !important; }
  .map-header { flex-direction: column !important; gap: 12px !important; padding: 20px !important; }
  .map-embed { height: 260px !important; }

  /* Partners */
  .partners-section { padding: 60px 20px !important; }
  .partners-inner { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Destinations */
  .destinations-section { padding: 60px 20px !important; }
  .dest-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .dest-card { padding: 18px 12px !important; }

  /* Form */
  .form-row { grid-template-columns: 1fr !important; }
  .contact-icon { width: 42px !important; height: 42px !important; font-size: 18px !important; }
}

/* ===== LIGHTBOX MOBILE ===== */
@media (max-width: 768px) {
  .lightbox { padding: 16px; }
  .lightbox img { max-width: 96vw; max-height: 75vh; }
  .lightbox-close { top: 12px; right: 16px; font-size: 28px; }
}

@media (max-width:768px){

  .nav-hamburger{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
  }

  .lang-dropdown{
    margin-right:50px;
  }
}