:root {
  --blue: #1D4ED8;
  --blue-light: #3B82F6;
  --amber: #F59E0B;
  --amber-light: #FCD34D;
  --dark: #0F172A;
  --surface: #F8FAFC;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  /* San Francisco (iOS System font stack) */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--surface);
  color: var(--dark);
  overflow-x: hidden;
}

/* Mengeset semua huraian tajuk menggunakan struktur fon iOS yang sama */
h1, h2, h3, .font-display { 
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; 
}

/* ── WELCOME POPUP ── */
#welcome-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .4s ease;
}

#welcome-overlay.hide {
  animation: fadeOut .4s ease forwards;
}

#welcome-card {
  background: #fff;
  border-radius: 24px;
  max-width: 360px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.25);
  animation: slideUp .5s cubic-bezier(.34,1.56,.64,1) .1s both;
  position: relative;
}

.popup-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #1e40af 60%, #1d4ed8 100%);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.popup-banner::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='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.popup-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: .5rem;
  animation: bounce 1s ease .6s both;
}

.popup-badge {
  display: inline-block;
  background: var(--amber);
  color: #000;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 99px;
  margin-bottom: .75rem;
}

.popup-body { padding: 1.5rem; }

.popup-hours {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 12px;
  padding: .75rem 1rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  font-weight: 500;
  color: #0369a1;
}

.popup-cta {
  display: block;
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: .875rem;
  border-radius: 12px;
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
  text-align: center;
}

.popup-cta:active { transform: scale(.97); background: #1e40af; }

.popup-close {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(255,255,255,.2);
  border: none; color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 2;
}
.popup-close:hover { background: rgba(255,255,255,.35); }

/* ── HEADER ── */
header {
  background: var(--blue);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
  transition: color .2s;
}

.nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width .25s ease;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ── MOBILE NAV DRAWER ── */
#mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 280px;
  background: var(--dark);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  padding: 5rem 1.5rem 2rem;
  display: flex; flex-direction: column; gap: .5rem;
}

#mobile-drawer.open { transform: translateX(0); }

#drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 199;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}

#drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer-link {
  font-weight: 600;
  font-size: 1.1rem;
  color: #CBD5E1;
  padding: .875rem 1rem;
  border-radius: 12px;
  border-left: 3px solid transparent;
  transition: all .2s;
  text-decoration: none;
  display: flex; align-items: center; gap: .75rem;
}

.drawer-link:hover, .drawer-link.active {
  background: rgba(255,255,255,.05);
  color: #fff;
  border-left-color: var(--amber);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 70vw;
  max-height: 520px;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.55)), url('../assets/bg.jpg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { min-height: 380px; }
}

.hero-content { position: relative; z-index: 2; padding: 1.5rem; }

/* ── FLOATING TAG PILL ── */
.tag-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.tag-dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease infinite;
}

/* ── CARDS & SECTIONS ── */
.section-title {
  font-weight: 800;
}

.offer-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1.5px solid #E2E8F0;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: .5rem;
}

.offer-card:active {
  transform: scale(.96);
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
}

@media (min-width: 768px) {
  .offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    border-color: var(--blue-light);
  }
}

.offer-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  background: #EFF6FF;
  transition: transform .2s;
}

.offer-card:hover .offer-icon { transform: scale(1.1) rotate(-3deg); }

/* ── COFFEE SECTION ── */
.coffee-section {
  position: relative;
  background: url('../assets/bgKopijpg.jpg') center/cover no-repeat;
  overflow: hidden;
}

.coffee-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 100%);
}

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--blue);
  color: #fff;
}

.stat-item {
  text-align: center;
  padding: 1.25rem .5rem;
  border-right: 1px solid rgba(255,255,255,.15);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--amber);
}

.stat-label {
  font-size: .65rem;
  font-weight: 500;
  opacity: .8;
  margin-top: .25rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── INFO CARD ── */
.info-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  border: 1.5px solid #E2E8F0;
}

.hours-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #DCFCE7; color: #166534;
  font-size: .75rem; font-weight: 700;
  padding: .3rem .75rem; border-radius: 99px;
  margin-bottom: 1rem;
}

.hours-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E;
  animation: pulse-dot 1.5s ease infinite;
}

/* ── TOAST NOTIFICATION ── */
#toast {
  position: fixed; bottom: 1.25rem; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--dark);
  color: #fff;
  font-size: .82rem; font-weight: 500;
  padding: .65rem 1.25rem;
  border-radius: 99px;
  white-space: nowrap;
  z-index: 1000;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: .5rem;
}

#toast.show { transform: translateX(-50%) translateY(0); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── FAB (Floating WhatsApp) ── */
#fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 300;
  text-decoration: none;
  animation: fabIn .5s cubic-bezier(.34,1.56,.64,1) 1s both;
  transition: transform .2s, box-shadow .2s;
}

#fab:active { transform: scale(.9); }
@media (min-width: 768px) { #fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37,211,102,.5); } }

#fab svg { width: 26px; height: 26px; fill: #fff; }

.fab-pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: fab-ring 2s ease infinite;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: #94A3B8;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeOut { from { opacity: 1 } to { opacity: 0; pointer-events: none } }
@keyframes slideUp { from { opacity:0; transform: translateY(40px) scale(.96) } to { opacity:1; transform: translateY(0) scale(1) } }
@keyframes bounce {
  0%,100% { transform: translateY(0) }
  40% { transform: translateY(-10px) }
  60% { transform: translateY(-5px) }
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform: scale(1) }
  50% { opacity:.6; transform: scale(1.4) }
}
@keyframes fabIn { from { opacity:0; transform: scale(0) } to { opacity:1; transform: scale(1) } }
@keyframes fab-ring {
  0% { opacity: .5; transform: scale(1) }
  100% { opacity: 0; transform: scale(1.7) }
}
@keyframes shimmer {
  0% { background-position: -200% 0 }
  100% { background-position: 200% 0 }
}

/* ── MARQUEE ── */
.marquee-wrap { overflow: hidden; }
.marquee-track {
  display: flex; gap: 2rem;
  animation: marqueeScroll 18s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0) }
  to { transform: translateX(-50%) }
}
.marquee-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600;
  color: #64748B;
  white-space: nowrap;
  padding: .5rem 0;
}
.marquee-sep { color: var(--amber); font-size: 1rem; }

/* ── PRODUCT HIGHLIGHT ── */
.product-bg {
  position: relative;
  background: url('../assets/bgSayur.png') center/cover no-repeat;
  overflow: hidden;
  border-radius: 20px;
}

.product-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.6));
  border-radius: 20px;
}