/* ═══════════════════════════════════════════════════════════
   style.css — Roti Menull Knk  v3.0
   ═══════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --brown-900: #2b1a12;
  --brown-800: #3b2418;
  --brown-700: #6b4632;
  --brown-600: #8b5d3f;
  --brown-500: #9a6b4b;
  --brown-400: #b48a6a;
  --cream-50:  #fdf8f3;
  --cream-100: #f8f1ea;
  --cream-200: #f0e1d3;
  --cream-300: #e3cbb6;
  --accent:    #c48758;
  --accent-lt: #e0a87a;

  --shadow-sm: 0 4px 12px rgba(43,26,18,.10);
  --shadow-md: 0 8px 24px rgba(43,26,18,.14);
  --shadow-lg: 0 18px 40px rgba(43,26,18,.18);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --transition: 0.22s ease;
  --font-body: "Poppins", sans-serif;
  --font-display: "Playfair Display", serif;
}

/* ── 2. RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brown-900);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── 3. LAYOUT ──────────────────────────────────────────────── */
.section { padding: 72px 6vw; }

.section-header { max-width: 680px; margin-bottom: 36px; }
.section-header h1,
.section-header h2 {
  font-family: var(--font-display);
  margin-bottom: 10px;
  color: var(--brown-700);
  line-height: 1.2;
}
.section-header p { color: var(--brown-500); margin: 0; }

/* ── 4. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .93rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary {
  background: var(--brown-700);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--brown-800); box-shadow: var(--shadow-lg); }
.btn-primary:disabled {
  background: var(--cream-300);
  color: var(--brown-400);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brown-500);
  color: var(--brown-700);
}
.btn-outline:hover { background: var(--cream-200); }

.btn-block { width: 100%; }
.btn-lg    { padding: 14px 32px; font-size: 1rem; }
.btn-back  { padding: 8px 20px; font-size: .88rem; }

/* ── 5. NAVBAR ─────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6vw;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  z-index: 40;
  box-shadow: 0 2px 20px rgba(59,38,26,.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--brown-800); }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-weight: 500;
  color: var(--brown-700);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
  font-size: .9rem;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--brown-900);
  color: #f7ede3;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--brown-700);
  margin: 5px 0;
  border-radius: 2px;
}

/* Order page navbar — sticky, not fixed */
.navbar-order {
  position: sticky;
  top: 0;
  box-shadow: var(--shadow-sm);
}

/* ── 6. HERO ────────────────────────────────────────────────── */
.site-header {
  padding-top: 72px;
  background: linear-gradient(160deg, #fff 60%, var(--cream-100) 100%);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  padding: 48px 6vw 80px;
  align-items: center;
}

.hero-kicker {
  color: var(--brown-500);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 8px;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--brown-800);
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-subtitle { color: var(--brown-600); margin-bottom: 28px; line-height: 1.6; }
.hero-actions  { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-300);
}
.hero-card h3 { font-family: var(--font-display); color: var(--brown-800); margin-bottom: 14px; }
.hero-card ul { display: grid; gap: 8px; color: var(--brown-700); }
.hero-card li { padding: 4px 0; }

.hero-badge {
  margin-top: 20px;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cream-100);
  color: var(--brown-800);
  font-weight: 600;
  font-size: .88rem;
  border: 1px solid var(--cream-300);
}

/* ── 7. MENU GRID (foto produk) ─────────────────────────────── */
.menu-categories {
  padding: 72px 6vw;
  background: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.menu-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-200);
  transition: transform var(--transition), box-shadow var(--transition);
}
.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.menu-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream-100);
}
.menu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.menu-card:hover .menu-photo img { transform: scale(1.06); }

.menu-meta { padding: 10px 12px 14px; }
.menu-name {
  font-weight: 600;
  font-size: .85rem;
  color: var(--brown-800);
  line-height: 1.4;
}

/* ── 8. LOCATION ────────────────────────────────────────────── */
.location {
  background: #ffffff !important;
  padding: 72px 6vw;
  position: relative;
  z-index: 2;
}
.location .section-header h2 { 
  color: var(--brown-700) !important; 
}
.location .section-header p  { 
  color: var(--brown-500) !important; 
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.map-embed {
  background: var(--cream-50);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-200);
}
.map-embed iframe { border-radius: var(--radius-sm); height: 280px; }
.address { margin: 14px 0 0; color: var(--brown-600); font-size: .88rem; line-height: 1.5; }

.contact-card {
  background: var(--white-50);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-200);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card h3 { font-family: var(--font-display); color: var(--brown-800); margin-bottom: 4px; }

.contact-link {
  padding: 12px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--brown-700);
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid var(--brown-500);
  transition: background var(--transition);
  text-align: center;
}
.contact-link:hover { background: var(--cream-200); }
.contact-note { color: var(--brown-600); font-size: .82rem; margin-top: 4px; }

/* ── 9. TESTIMONIALS ────────────────────────────────────────── */
.testimonials { background: #fff; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-form {
  background: var(--cream-50);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-300);
  display: grid;
  gap: 18px;
}

.testimonial-box {
  background: var(--cream-50);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-300);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 380px;
  overflow-y: auto;
}

.testimonial-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cream-300);
}
.testimonial-item:last-child { border-bottom: none; padding-bottom: 0; }
.testimonial-item strong { color: var(--brown-700); display: block; margin-bottom: 4px; }
.testimonial-item p { margin: 0; color: var(--brown-600); font-size: .88rem; line-height: 1.5; }

/* Animasi testimoni baru */
.testimonial-new {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .35s ease, transform .35s ease;
}
.testimonial-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 10. FORM INPUTS ────────────────────────────────────────── */
label {
  display: grid;
  gap: 8px;
  font-weight: 500;
  font-size: .9rem;
  color: var(--brown-700);
}

input, select, textarea {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--cream-300);
  background: #fff;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--brown-900);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brown-500);
  box-shadow: 0 0 0 3px rgba(154,107,75,.15);
}
textarea {
  border-radius: var(--radius-md);
  resize: vertical;
}
label.full { grid-column: 1 / -1; }

/* ── 11. FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--brown-900);
  color: var(--cream-200);
  padding: 36px 6vw 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  font-size: .88rem;
  margin-bottom: 24px;
}
.footer-grid h3,
.footer-grid h4 { color: var(--cream-100); margin-bottom: 12px; }
.footer-grid p  { color: var(--cream-300); margin: 4px 0; }
.footer-grid ul { display: grid; gap: 8px; }
.footer-grid li { color: var(--cream-300); }
.footer-grid a:hover { color: var(--accent-lt); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
  font-size: .82rem;
  color: var(--cream-300);
}

.socials { display: flex; gap: 10px; }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  transition: background var(--transition);
}
.social-icon:hover { background: rgba(255,255,255,.22); }
.social-icon svg { width: 18px; height: 18px; fill: var(--cream-200); }

/* ── 12. BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--cream-300);
  background: #fff;
  color: var(--brown-700);
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 30;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ── 13. TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brown-800);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════════════════════════════
   ORDER PAGE STYLES
   ════════════════════════════════════════════════════════════ */

.order-body { background: var(--cream-50); }
.order-page { padding: 32px 0 60px; }
.order-section { padding-top: 32px; }

/* ── Step Bar ────────────────────────────────────────────── */
.step-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  max-width: 400px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.step-item span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--brown-400);
  white-space: nowrap;
}
.step-item.active span { color: var(--brown-700); }

.step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream-300);
  color: var(--brown-400);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
.step-item.active .step-dot {
  background: var(--brown-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--cream-300);
  margin: 0 10px;
  margin-bottom: 20px;
}

/* ── Accordion Kategori ──────────────────────────────────── */
.order-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  max-width: 680px;
}

.kat-block {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--cream-300);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.kat-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown-800);
  transition: background var(--transition);
}
.kat-header:hover { background: var(--cream-50); }
.kat-header[aria-expanded="true"] { background: var(--cream-100); }

.kat-left { display: flex; align-items: center; gap: 12px; }
.kat-emoji { font-size: 1.4rem; }
.kat-name  { font-size: 1rem; }
.kat-arrow { font-size: 1.1rem; color: var(--brown-500); transition: transform var(--transition); }

.kat-body {
  border-top: 1px solid var(--cream-200);
  padding: 8px 0;
}

/* ── Varian Row ──────────────────────────────────────────── */
.varian-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  transition: background var(--transition);
  gap: 16px;
}
.varian-row:hover { background: var(--cream-50); }

.varian-selected { background: #fef6ee !important; }

.varian-info { flex: 1; min-width: 0; }
.varian-name {
  font-size: .92rem;
  font-weight: 500;
  color: var(--brown-800);
}

.varian-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.qty-btn-sm {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--cream-300);
  background: #fff;
  color: var(--brown-700);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  line-height: 1;
}
.qty-btn-sm:hover {
  background: var(--brown-700);
  border-color: var(--brown-700);
  color: #fff;
}

.qty-display {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  color: var(--brown-800);
}

/* ── Order Preview ───────────────────────────────────────── */
.order-preview {
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  max-width: 680px;
  box-shadow: var(--shadow-sm);
}
.order-preview h4 {
  font-family: var(--font-display);
  color: var(--brown-800);
  margin-bottom: 12px;
}

.preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  color: var(--brown-700);
  padding: 6px 0;
  border-bottom: 1px solid var(--cream-200);
  gap: 12px;
}
.preview-item:last-child { border-bottom: none; }

.preview-total {
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--brown-700);
  text-align: right;
}

/* ── Step Actions ────────────────────────────────────────── */
.step-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 680px;
}

.step-hint {
  margin: 0;
  font-size: .82rem;
  color: var(--brown-400);
}

/* ── Order Summary (Step 2) ──────────────────────────────── */
.order-summary-box {
  background: var(--cream-100);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  max-width: 680px;
  border: 1px solid var(--cream-300);
}
.order-summary-box h4 {
  font-family: var(--font-display);
  color: var(--brown-800);
  margin-bottom: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  color: var(--brown-700);
  padding: 6px 0;
  border-bottom: 1px solid var(--cream-300);
  gap: 12px;
}
.summary-item:last-child { border-bottom: none; }

/* ── Order Form ──────────────────────────────────────────── */
.order-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--cream-300);
  max-width: 680px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.wa-btn {
  background: #25D366;
  color: #fff;
}
.wa-btn:hover { background: #1ebe58; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 68px; right: 6vw;
    background: #fff;
    padding: 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 4px;
    display: none;
    z-index: 50;
    border: 1px solid var(--cream-300);
  }
  .nav-links.open { display: flex; }

  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid  { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .section { padding: 48px 5vw; }
  .hero    { padding: 32px 5vw 56px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .order-form { padding: 20px; }
  input, select { border-radius: var(--radius-md); }
}