/* Ayam Golek Almari Pasir Puteh – laman web statik
   Palet sama dengan aplikasi kad kesetiaan: merah, jingga, krim, hitam */
:root {
  --red: #b3261e;
  --red-dark: #7f1a14;
  --orange: #e8710a;
  --orange-2: #f7a440;
  --cream: #fff6e8;
  --cream-2: #fbe8cc;
  --black: #1d1412;
  --ink: #2b201d;
  --muted: #6b5a53;
  --line: #eedcc2;
  --wa: #1fa855;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(60, 25, 10, .12);
  --head: "Baloo 2", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; color: var(--black); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }
.mt { margin-top: 1.4rem; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Jalur draf (hanya muncul jika maklumat belum lengkap) ---------- */
.draf { background: #fff1c9; color: #5c4300; border-bottom: 1px solid #ecd48a; font-size: .85rem; padding: 8px 16px; text-align: center; }
.draf code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

/* ---------- Pengepala ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 246, 232, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--black); }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 800; overflow: hidden; flex: none; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.2rem; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { background: var(--cream-2); }
.nav a.nav-cta { background: var(--black); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--red); }
.burger { display: none; background: none; border: 0; width: 46px; height: 46px; border-radius: 10px; cursor: pointer; padding: 11px; }
.burger span { display: block; height: 3px; background: var(--black); border-radius: 3px; margin: 4px 0; transition: .2s; }
@media (max-width: 820px) {
  .burger { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: 0 12px 20px rgba(0,0,0,.08); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Butang ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: 14px; font-weight: 800; text-decoration: none; font-size: 1rem; border: 2px solid transparent; transition: transform .1s, filter .15s; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-dark { background: var(--black); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-line { background: #fff; color: var(--red); border-color: var(--red); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .6rem; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; min-height: min(78vh, 640px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(circle at 85% 20%, rgba(247,164,64,.55), transparent 42%),
  radial-gradient(circle at 10% 90%, rgba(232,113,10,.45), transparent 40%),
  linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--black) 100%); }
.hero-bg.has-img { background-size: cover; background-position: center; }
.hero-bg.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,20,18,.88) 0%, rgba(29,20,18,.55) 55%, rgba(29,20,18,.15) 100%); }
.hero-in { position: relative; padding: 72px 0; }
.hero-text { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 8vw, 4.8rem); margin-bottom: 1rem; }
.hero h1 span { display: block; }
.h1-small { font-size: .55em; color: var(--orange-2); letter-spacing: .5px; }
.lead { font-size: 1.2rem; opacity: .95; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; margin-bottom: 1rem; }
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.status-pill.closed .dot { background: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.25); }

/* ---------- Jalur kad kesetiaan ---------- */
.loyal { background: linear-gradient(90deg, var(--orange) 0%, var(--orange-2) 100%); }
.loyal-in { display: flex; align-items: center; gap: 18px; padding: 22px 0; flex-wrap: wrap; }
.loyal-icon { font-size: 2.4rem; }
.loyal-text { flex: 1 1 320px; }
.loyal-text h2 { font-size: 1.6rem; margin: 0; }
.loyal-text p { margin: 0; color: #3a2310; font-weight: 600; }

/* ---------- Bahagian ---------- */
.section { padding: 72px 0; }
.section.alt { background: #fff; }
.sec-head { text-align: center; margin-bottom: 28px; }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--orange); font-size: .8rem; margin: 0 0 .3rem; }
.note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* ---------- Menu ---------- */
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.chip { border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 800; padding: 8px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.chip[aria-selected="true"] { background: var(--black); border-color: var(--black); color: #fff; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
/* chips-scroll: telefon – satu baris boleh dileret */
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.menu-grid > .note { grid-column: 1 / -1; padding: 30px 0; }
.dish { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid #f3e4cc; }
.dish-img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--cream-2), #ffd9a8); display: grid; place-items: center; font-size: 3.4rem; position: relative; overflow: hidden; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; }
.dish-badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.dish-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.dish h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.dish p { color: var(--muted); font-size: .95rem; margin-bottom: .8rem; }
.dish-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--head); font-weight: 800; font-size: 1.5rem; color: var(--red); }
.price.ask { font-family: var(--body); font-size: .95rem; color: var(--muted); font-weight: 700; }
.dish-order { font-weight: 800; text-decoration: none; color: var(--wa); font-size: .95rem; white-space: nowrap; }
.poster { margin-top: 32px; text-align: center; }
.poster img { margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); max-height: 900px; width: auto; }

/* ---------- Tentang ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.about-text p { font-size: 1.08rem; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img, .gallery .ph { border-radius: 16px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery img:first-child, .gallery .ph:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
/* 2 gambar: bertindan penuh lebar; bilangan genap lain: grid segi empat tanpa ruang kosong */
.gallery.n-2 { grid-template-columns: 1fr; }
.gallery.n-2 > *, .gallery.n-2 > *:first-child { grid-column: auto; aspect-ratio: 16 / 10; }
.gallery.n-even > *:first-child { grid-column: auto; aspect-ratio: 1; }
.ph { background: linear-gradient(135deg, var(--cream-2), #ffd9a8); display: grid; place-items: center; font-size: 2.6rem; color: var(--muted); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* ---------- Lokasi ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid #f3e4cc; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 10px; }
@media (max-width: 420px) { .hours td { font-size: .92rem; } }
.hours tr.today td { color: var(--red); font-weight: 800; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 340px; background: var(--cream-2); box-shadow: var(--shadow); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 0; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
@media (max-width: 820px) { .loc-grid { grid-template-columns: 1fr; } }

/* ---------- Hubungi ---------- */
.contact { background: var(--black); color: #f1e3d6; }
.sec-head.light h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contact-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px; text-decoration: none; color: #fff; display: flex; flex-direction: column; gap: 6px; transition: background .15s, transform .1s; }
.contact-card:hover { background: rgba(255,255,255,.12); }
.contact-card .ic { font-size: 2rem; }
.contact-card strong { font-family: var(--head); font-size: 1.3rem; }
.contact-card span { color: #d9c6b6; font-size: .95rem; }
.contact-card.wa { background: var(--wa); border-color: var(--wa); }
.contact-card.wa span { color: #eafff1; }
.contact-card.empty { opacity: .55; cursor: default; }

/* ---------- Kaki ---------- */
.footer { background: #120c0b; color: #cbb8a9; padding: 32px 0 20px; }
.footer strong { color: #fff; font-family: var(--head); font-size: 1.15rem; }
.footer-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #f1e3d6; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--orange-2); }
.copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 20px; padding-top: 16px; }

/* ---------- Butang WhatsApp terapung ---------- */
.fab-wa { position: fixed; right: 18px; bottom: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(31,168,85,.45); z-index: 60; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
