/* =========================================================
   DIMSUM GORENG LUMER — style.css
   Mobile-first. Design tokens di :root.
   ========================================================= */

:root{
  /* Brand colors (brief) */
  --orange:        #FF8A00;
  --orange-dark:   #E67600;
  --orange-light:  #FFE3BF;
  --cream:         #FFFFFF;
  --white:         #FFFFFF;
  --wa-green:      #25D366;
  --wa-green-dark: #1DA851;

  /* Supporting neutrals — warm roasted brown for premium contrast */
  --ink:      #2B1B12;
  --ink-soft: #6B5646;
  --line:     #F0E2D3;
  --chili:    #E8402C;

  /* Radii & shadow */
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow-soft:  0 8px 24px rgba(43,27,18,.08);
  --shadow-hover: 0 16px 34px rgba(255,138,0,.22);
  --shadow-pop:   0 24px 60px rgba(43,27,18,.22);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-h: 64px;
  /* Data Store & Location Info */
  --store-name: "Dimsum Goreng Lumer Medan";
  --store-phone: "+6288807597952";
  --store-address: "Hongkong Fashion, Jl. Sisingamangaraja, Sudirejo II, Medan Amplas";
  --store-lat: 3.570776;
  --store-lng: 98.694665;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; border:none; background:none; cursor:pointer; }
h1,h2,h3{ font-family:var(--font-display); margin:0; color:var(--ink); }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--ink); color:var(--white);
  padding:10px 16px; border-radius:0 0 8px 0; z-index:1000;
}
.skip-link:focus{ left:0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- Utility ---------- */
.eyebrow{
  font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--orange-dark); margin:0 0 8px;
}
.eyebrow.center{ text-align:center; }
.section-title{ font-size:26px; font-weight:600; line-height:1.25; margin:0 0 4px; }
.section-title.center{ text-align:center; }
.muted{ color:var(--ink-soft); font-weight:500; }
.stars{ color:var(--orange); letter-spacing:1px; font-size:14px; }

/* Skeleton shimmer for image placeholders */
.skeleton{
  position:relative; overflow:hidden; background:linear-gradient(100deg,#f2e4d3 8%,#f8ecdd 18%,#f2e4d3 33%);
  background-size:200% 100%;
  animation:shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer{ 0%{background-position:150% 0} 100%{background-position:-50% 0} }
.skeleton.loaded{ animation:none; background:var(--orange-light); }

/* Fallback illustration for broken/missing photos */
.img-fallback{
  animation:none !important;
  background:radial-gradient(circle at 30% 25%, #FFD9A0, var(--orange) 70%);
  display:flex; align-items:center; justify-content:center;
}
.img-fallback::after{
  content:"🥟"; font-size:38%; filter:drop-shadow(0 6px 10px rgba(43,27,18,.25));
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 22px; border-radius:999px; font-weight:700; font-size:15px;
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:scale(.97); }
.btn-wa{ background:var(--wa-green); color:var(--white); box-shadow:var(--shadow-soft); }
.btn-wa:hover{ background:var(--wa-green-dark); box-shadow:var(--shadow-hover); }
.btn-lg{ padding:16px 28px; font-size:16px; width:100%; }
.btn-block{ width:100%; }
.btn-ghost{ background:transparent; color:var(--ink); border:1.5px solid var(--line); }
.btn-ghost:hover{ border-color:var(--orange); color:var(--orange-dark); }
.btn-outline{
  margin:18px auto 0; border:1.5px solid var(--orange); color:var(--orange-dark);
  background:var(--white);
}
.btn-light{ background:var(--white); color:var(--orange-dark); flex-shrink:0; }
.btn-sm{ padding:8px 14px; font-size:13px; border-radius:999px; }

/* Badges */
.badge{
  font-size:12px; font-weight:700; padding:6px 12px; border-radius:999px;
  display:inline-flex; align-items:center; gap:4px;
}
.badge-outline{ background:var(--white); border:1px solid var(--line); color:var(--ink-soft); }
.badge-flag{
  position:absolute; top:8px; left:8px; z-index:2; color:var(--white);
  font-size:10px; font-weight:800; padding:4px 9px; border-radius:999px;
  letter-spacing:.02em; box-shadow:0 4px 10px rgba(0,0,0,.15);
}
.badge-best{ background:var(--chili); }
.badge-pedas{ background:#D6260F; }

/* Scroll reveal */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform:none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:200; width:100%;
  transition:background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-transparent{ background:transparent; }
.site-header.is-solid{ background:rgba(255,255,255,.92); backdrop-filter:blur(10px); box-shadow:0 2px 14px rgba(43,27,18,.06); }

.header-inner{
  height:var(--header-h); max-width:1180px; margin:0 auto; padding:0 18px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ display:flex; width:38px; height:38px; align-items:center; justify-content:center;
  background:var(--white); border-radius:50%; box-shadow:var(--shadow-soft); flex-shrink:0; }
.brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.brand-text strong{ font-family:var(--font-display); font-weight:700; font-size:15px; color:var(--ink); }
.brand-text em{ font-style:normal; font-size:11px; font-weight:600; color:var(--orange-dark); letter-spacing:.02em; }

.cart-pill {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -2px;              /* Mengatur posisi atas-bawah badge */
  right: 12px;       /* Menggeser badge KE KIRI (makin besar nilainya, makin ke kiri) */
  
  font-size: 0.65rem;     /* Memperkecil ukuran font angka (sebelumnya biasa ~0.8rem) */
  min-width: 17px;    /* Memperkecil lebar lingkaran merah */
  height: 15px;          /* Memperkecil tinggi lingkaran merah */
  padding: 0 4px;         /* Mengatur jarak dalam agar tetap bulat rapi */
  
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;   /* Membuat lingkaran sempurna */
  background-color: #e53e3e; /* Warna merah badge */
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
}

.hamburger{
  width:38px; height:38px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  background:var(--white); border-radius:50%; box-shadow:var(--shadow-soft);
}
.hamburger span{ width:16px; height:2px; background:var(--ink); border-radius:2px; transition:transform .25s ease, opacity .25s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav-drawer{
  position:fixed; top:0; right:0; height:100dvh; width:min(78vw,320px);
  background:var(--white); z-index:220; padding:90px 26px 26px;
  display:flex; flex-direction:column; gap:6px;
  transform:translateX(100%); transition:transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow:-10px 0 40px rgba(43,27,18,.15);
}
.nav-drawer.open{ transform:translateX(0); }
.nav-link{ padding:13px 4px; font-weight:600; font-size:16px; border-bottom:1px solid var(--line); color:var(--ink); }
.nav-cta{
  margin-top:18px; background:var(--wa-green); color:var(--white); text-align:center;
  padding:14px; border-radius:999px; font-weight:700;
}
.nav-scrim{
  position:fixed; inset:0; background:rgba(43,27,18,.35); z-index:210;
  opacity:0; visibility:hidden; transition:opacity .3s ease;
}
.nav-scrim.open{ opacity:1; visibility:visible; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative; padding:28px 20px 40px; overflow:hidden;
  background:var(--white);
}
.hero-media{ position:relative; margin:0 -20px 26px; padding:0 20px; }
.hero-blob{
  position:absolute; top:-60px; right:-70px; width:260px; height:260px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,138,0,.28), transparent 70%);
  z-index:0; pointer-events:none;
}
.hero-photo-frame{ position:relative; z-index:1; }
.hero-photo{
  aspect-ratio:4/3; border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-pop);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; }
.hero-photo.img-fallback::after{ font-size:30%; }

.steam{
  position:absolute; width:5px; border-radius:8px; background:rgba(255,255,255,.75);
  filter:blur(1px); animation:rise 3.4s ease-in-out infinite;
}
.s1{ height:26px; top:6%; left:32%; animation-delay:0s; }
.s2{ height:34px; top:2%; left:48%; animation-delay:.7s; }
.s3{ height:22px; top:8%; left:62%; animation-delay:1.4s; }
@keyframes rise{
  0%{ transform:translateY(0) scaleY(1); opacity:0; }
  25%{ opacity:.8; }
  100%{ transform:translateY(-40px) scaleY(1.4); opacity:0; }
}

.hero-content{ position:relative; z-index:1; }
.hero-title{
  font-size:clamp(34px,9vw,44px); font-weight:700; line-height:1.05; margin-bottom:10px;
}
.drip-underline{
  position:relative; color:var(--orange-dark);
}
.drip-underline::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:14px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 20'%3E%3Cpath d='M0 6 Q10 0 20 6 T40 6 Q46 14 50 18 Q54 14 60 6 T80 6 Q86 15 90 19 Q94 15 100 6 T120 6 Q126 13 130 17 Q134 13 140 6 T160 6 Q166 14 170 18 Q174 14 180 6 T200 6 T220 6' fill='none' stroke='%23FF8A00' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left/60px 14px;
}
.hero-tagline{ font-size:17px; font-weight:600; color:var(--ink-soft); font-style:italic; margin-bottom:14px; }

.hero-rating{ display:flex; align-items:center; gap:6px; font-size:14px; margin-bottom:14px; }
.badge-row{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; }
.hero-actions{ display:flex; flex-direction:column; gap:10px; }

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip{
  display:grid; grid-template-columns:repeat(4,1fr); gap:8px;
  padding:18px 14px; max-width:1180px; margin:0 auto;
}
.trust-item{
  display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center;
  font-size:11.5px; font-weight:700; color:var(--ink-soft); line-height:1.25;
}
.trust-icon{ font-size:22px; }

/* =========================================================
   PROMO
   ========================================================= */
.promo{ padding:8px 20px 30px; max-width:1180px; margin:0 auto; }
.promo-card{
  background:linear-gradient(120deg, var(--orange) 0%, #FFA53D 100%);
  border-radius:var(--r-lg); padding:22px; display:flex; align-items:center; justify-content:space-between; gap:14px;
  box-shadow:var(--shadow-hover); position:relative; overflow:hidden;
}
.promo-card::after{
  content:"🥟"; position:absolute; right:-16px; bottom:-22px; font-size:110px; opacity:.18; transform:rotate(-12deg);
}
.promo-eyebrow{ color:#FFE9CC; font-size:12px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; margin-bottom:4px; }
.promo-card h2{ color:var(--white); font-size:22px; font-weight:700; margin-bottom:4px; }
.promo-sub{ color:#FFEFDC; font-size:13px; font-weight:500; }

/* =========================================================
   MENU GRID
   ========================================================= */
.menu-section{ padding:10px 16px 30px; max-width:1180px; margin:0 auto; }
.section-head{ padding:0 4px; margin-bottom:16px; }

.menu-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:8px;
}
@media (max-width:400px){
  .menu-grid{ gap:6px; }
}

.menu-card{
  background:var(--white); border-radius:var(--r-md); overflow:hidden; box-shadow:var(--shadow-soft);
  display:flex; flex-direction:column; cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
}
.menu-card:hover{ box-shadow:var(--shadow-hover); transform:translateY(-2px); }
.menu-card:active{ transform:scale(.97); }

.menu-photo{ position:relative; aspect-ratio:1/1; }
.menu-photo img{ width:100%; height:100%; object-fit:cover; }

.menu-info{ padding:8px 7px 10px; display:flex; flex-direction:column; gap:2px; flex:1; }
.menu-name{ font-size:11.5px; font-weight:700; line-height:1.2; color:var(--ink); min-height:2.3em; }
.menu-price{ font-size:12.5px; font-weight:800; color:var(--orange-dark); margin-top:2px; }
.menu-order{
  margin-top:6px; width:100%; padding:6px 0; border-radius:999px; background:var(--orange-light);
  color:var(--orange-dark); font-weight:700; font-size:11px; text-align:center;
  transition:background-color .15s ease, color .15s ease;
}
.menu-card:hover .menu-order{ background:var(--orange); color:var(--white); }

@media (min-width:640px){
  .menu-name{ font-size:13px; }
  .menu-price{ font-size:14px; }
  .menu-order{ font-size:12.5px; padding:8px 0; }
}

/* =========================================================
   STEPS
   ========================================================= */
.steps-section{ padding:36px 20px; max-width:1180px; margin:0 auto; text-align:center; }
.steps-grid{ display:grid; gap:16px; margin-top:22px; }
@media (min-width:640px){ .steps-grid{ grid-template-columns:repeat(3,1fr); } }
.step{
  background:var(--white); border-radius:var(--r-md); padding:22px 18px; box-shadow:var(--shadow-soft);
}
.step-num{
  display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
  border-radius:50%; background:var(--orange); color:var(--white); font-weight:800; font-family:var(--font-display);
  margin-bottom:10px;
}
.step h3{ font-size:16px; margin-bottom:6px; }
.step p{ font-size:13.5px; color:var(--ink-soft); line-height:1.5; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testi-section{ padding:12px 0 36px; }
.testi-section .eyebrow, .testi-section .section-title{ padding:0 20px; }
.testi-scroller{
  display:flex; gap:12px; overflow-x:auto; padding:18px 20px 8px; scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.testi-scroller::-webkit-scrollbar{ display:none; }
.testi-card{
  scroll-snap-align:start; flex:0 0 76%; max-width:280px; background:var(--white);
  border-radius:var(--r-md); padding:18px; box-shadow:var(--shadow-soft); display:flex; flex-direction:column; gap:10px;
}
@media (min-width:640px){ .testi-card{ flex-basis:320px; } }
.testi-top{ display:flex; align-items:center; gap:10px; }
.testi-avatar{
  width:42px; height:42px; border-radius:50%; background:var(--orange-light); color:var(--orange-dark);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-family:var(--font-display); flex-shrink:0;
}
.testi-name{ font-weight:700; font-size:14px; }
.testi-quote{ font-size:13.5px; color:var(--ink-soft); line-height:1.55; }

/* =========================================================
   LOCATION
   ========================================================= */
.location-section{ padding:12px 20px 40px; max-width:720px; margin:0 auto; text-align:center; }
.location-desc{ font-size:14px; color:var(--ink-soft); margin-bottom:18px; }
.map-wrap{ border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-soft); aspect-ratio:4/3; }
.map-wrap iframe{ width:100%; height:100%; border:0; }

/* =========================================================
   CLOSING CTA
   ========================================================= */
.closing-cta{
  margin:0 16px 30px; border-radius:var(--r-lg); padding:38px 26px;
  background:radial-gradient(120% 120% at 20% 0%, #3a2416 0%, var(--ink) 60%);
  text-align:center;
}
.closing-inner h2{ color:var(--white); font-size:24px; margin-bottom:8px; }
.closing-inner p{ color:#D8C6B6; font-size:14px; margin-bottom:20px; }
.closing-inner .btn-wa{ display:inline-flex; width:auto; padding:15px 30px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background:var(--ink); color:#E9DBCC; padding:36px 20px 26px; text-align:center;
}
.footer-brand{ display:flex; align-items:center; justify-content:center; gap:8px; font-family:var(--font-display); font-weight:700; font-size:16px; color:var(--white); }
.footer-tagline{ font-style:italic; color:#C9B29C; font-size:13px; margin:6px 0 18px; }
.footer-badges{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; font-size:11.5px; color:#D8C6B6; margin-bottom:18px; }
.footer-badges span{ background:rgba(255,255,255,.06); padding:6px 11px; border-radius:999px; }
.footer-copy{ font-size:11.5px; color:#9C8871; }

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.fab-wa{
  position:fixed; right:16px; bottom:18px; z-index:150;
  width:58px; height:58px; border-radius:50%; background:var(--wa-green);
  display:flex; align-items:center; justify-content:center; color:var(--white);
  box-shadow:0 10px 26px rgba(37,211,102,.45);
}
.fab-ring{
  position:absolute; inset:0; border-radius:50%; border:2px solid var(--wa-green);
  animation:pulse-ring 5s ease-out infinite;
}
@keyframes pulse-ring{
  0%,88%{ transform:scale(1); opacity:0; }
  90%{ opacity:.6; }
  100%{ transform:scale(1.9); opacity:0; }
}

/* =========================================================
   PRODUCT BOTTOM SHEET
   ========================================================= */
.sheet-scrim{
  position:fixed; inset:0; background:rgba(43,27,18,.45); z-index:300;
  opacity:0; visibility:hidden; transition:opacity .3s ease;
}
.sheet-scrim.open{ opacity:1; visibility:visible; }

.product-sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:310; max-width:520px; margin:0 auto;
  background:var(--white); border-radius:26px 26px 0 0; box-shadow:0 -20px 50px rgba(43,27,18,.25);
  max-height:88dvh; overflow-y:auto;
  transform:translateY(100%); transition:transform .38s cubic-bezier(.32,.72,0,1);
  padding-bottom:env(safe-area-inset-bottom);
}
.product-sheet.open{ transform:translateY(0); }

.sheet-handle{ width:40px; height:4px; background:var(--line); border-radius:4px; margin:10px auto 0; }
.sheet-close{
  position:absolute; top:14px; right:14px; width:32px; height:32px; border-radius:50%;
  background:var(--cream); display:flex; align-items:center; justify-content:center; z-index:2; font-size:14px;
}

.sheet-photo{ aspect-ratio:4/3; margin:14px 20px 0; border-radius:var(--r-md); overflow:hidden; position:relative; }
.sheet-photo img{ width:100%; height:100%; object-fit:cover; }
.sheet-badge{
  position:absolute; top:10px; left:10px; background:var(--chili); color:var(--white);
  font-size:11px; font-weight:800; padding:5px 11px; border-radius:999px;
}

.sheet-body{ padding:18px 22px 26px; }
.sheet-body h3{ font-size:21px; font-weight:700; margin-bottom:6px; }
.sheet-price{ font-size:20px; font-weight:800; color:var(--orange-dark); margin-bottom:8px; }
.sheet-price .muted{ font-size:14px; font-weight:600; }
.sheet-rating{ display:flex; align-items:center; gap:6px; font-size:13px; margin-bottom:12px; }
.sheet-desc{ font-size:14px; color:var(--ink-soft); line-height:1.6; margin-bottom:18px; }

.qty-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.qty-label{ font-weight:700; font-size:14px; }
.qty-stepper{
  display:flex; align-items:center; gap:16px; background:var(--cream); border-radius:999px; padding:6px 8px;
}
.qty-stepper button{
  width:30px; height:30px; border-radius:50%; background:var(--white); box-shadow:var(--shadow-soft);
  font-size:18px; font-weight:700; color:var(--orange-dark); display:flex; align-items:center; justify-content:center;
}
.qty-stepper button:active{ transform:scale(.9); }
#qtyValue{ font-weight:800; min-width:18px; text-align:center; }

/* =========================================================
   RESPONSIVE — TABLET / DESKTOP
   ========================================================= */
@media (min-width:768px){
  .header-inner, .hero, .trust-strip, .promo, .menu-section, .steps-section, .location-section{
    padding-left:32px; padding-right:32px;
  }
  .hero{ display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:40px; padding-top:50px; padding-bottom:60px; }
  .hero-media{ order:2; margin:0; padding:0; }
  .hero-content{ order:1; }
  .hero-actions{ flex-direction:row; }
  .btn-lg{ width:auto; }
  .menu-grid{ grid-template-columns:repeat(4,1fr); gap:16px; }
  .promo-card{ padding:32px 40px; }
}

@media (min-width:1024px){
  .menu-grid{ grid-template-columns:repeat(6,1fr); }
  .hero-title{ font-size:56px; }
}
