/* Rumah Makan Minang Sejati — style.css */
:root {
  --primary: #b71c1c;
  --primary-dark: #7f0000;
  --primary-light: #e53935;
  --accent: #ffd600;
  --accent-dark: #c7a600;
  --bg: #fff9f0;
  --bg-warm: #fff3e0;
  --bg-card: #ffffff;
  --text: #1a0a00;
  --text-light: #5a3a20;
  --text-muted: #8a6040;
  --border: #e8d5b7;
  --shadow: 0 2px 12px rgba(183,28,28,0.10);
  --shadow-lg: 0 6px 32px rgba(183,28,28,0.14);
  --radius: 10px;
  --radius-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  padding-top: 36px;
}

/* ── DEMO BAR ─────────────────────────────────────── */
.demo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: #b71c1c;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
}
.demo-bar a { color: #ffd600; text-decoration: none; font-weight: 700; }
.demo-bar a:hover { text-decoration: underline; }

/* ── SONGKET PATTERN (CSS background) ────────────── */
.songket-stripe {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0px, var(--accent) 10px,
    var(--primary) 10px, var(--primary) 20px,
    var(--accent-dark) 20px, var(--accent-dark) 24px,
    var(--primary) 24px, var(--primary) 34px
  );
}

/* ── HEADER / NAV ─────────────────────────────────── */
header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 36px;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text { line-height: 1.2; }
.logo-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .02em;
}
.logo-text span {
  font-size: 11px;
  opacity: .85;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* checkbox-hack mobile nav */
#nav-toggle { display: none; }

.nav-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 10;
}
.nav-label span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

#nav-toggle:checked ~ .nav-label span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#nav-toggle:checked ~ .nav-label span:nth-child(2) { opacity: 0; }
#nav-toggle:checked ~ .nav-label span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}

nav ul li a {
  display: block;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--accent);
  color: var(--primary-dark);
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #c62828 100%);
  color: #fff;
  padding: 72px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0px, transparent 30px,
    rgba(255,214,0,.04) 30px, rgba(255,214,0,.04) 32px
  );
}

.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: clamp(14px, 2.5vw, 18px);
  opacity: .9;
  max-width: 540px;
  margin: 0 auto 28px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 18px rgba(255,214,0,.4);
}
.btn-accent:hover { background: #ffe033; box-shadow: 0 6px 24px rgba(255,214,0,.5); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(183,28,28,.3);
}
.btn-primary:hover { background: var(--primary-dark); }

/* ── RUMAH GADANG SVG WRAPPER ─────────────────────── */
.hero-svg {
  margin: 32px auto 0;
  max-width: 360px;
  opacity: .92;
}

/* ── SECTIONS GENERIC ─────────────────────────────── */
.section { padding: 60px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--bg-warm); }
.section-dark { background: var(--primary); color: #fff; }
.section-dark .section-title,
.section-dark .section-sub { color: #fff; }
.section-dark .section-sub { opacity: .8; }

.section-header { text-align: center; margin-bottom: 44px; }
.section-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 15px;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
}
.divider {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ── CARD GRID ────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-visual {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  font-size: 14px;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.card-body p { font-size: 14px; color: var(--text-light); line-height: 1.5; }
.card-price {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.card-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

/* ── DISH VISUAL (CSS art) ────────────────────────── */
.dish-rendang {
  background: radial-gradient(ellipse at 40% 40%, #4e342e 0%, #3e2723 50%, #2c1810 100%);
}
.dish-rendang::after {
  content: '';
  position: absolute;
  top: 30%; left: 25%; right: 25%; bottom: 30%;
  background: radial-gradient(ellipse, #8d6e63 0%, #6d4c41 40%, transparent 70%);
  border-radius: 50%;
}

.dish-ayam-pop {
  background: radial-gradient(ellipse at 50% 50%, #fff8e1 0%, #ffe082 50%, #ffcc02 100%);
}
.dish-ayam-pop::after {
  content: '';
  position: absolute;
  top: 20%; left: 20%; right: 20%; bottom: 20%;
  background: radial-gradient(ellipse, #fffde7 0%, #fff9c4 50%, #f9a825 100%);
  border-radius: 40%;
}

.dish-gulai {
  background: radial-gradient(ellipse at 50% 50%, #fff8e1 0%, #ffe0b2 40%, #ffb300 100%);
}
.dish-gulai::after {
  content: '';
  position: absolute;
  top: 25%; left: 20%; right: 20%; bottom: 25%;
  background: radial-gradient(ellipse, #ffe57f 0%, #ffc400 60%, transparent 80%);
  border-radius: 40%;
}

/* ── KEUNGGULAN LIST ──────────────────────────────── */
.keunggulan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.keunggulan-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.keunggulan-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.keunggulan-icon svg { width: 26px; height: 26px; }
.keunggulan-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.keunggulan-item p { font-size: 13px; color: var(--text-light); }

/* ── PRASMANAN INFO ───────────────────────────────── */
.prasmanan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.prasmanan-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}
.prasmanan-card.featured {
  border-color: var(--accent);
  position: relative;
}
.prasmanan-card.featured::before {
  content: 'POPULER';
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 10px;
  letter-spacing: .1em;
}
.prasmanan-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.prasmanan-card .price {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.prasmanan-card ul { list-style: none; }
.prasmanan-card ul li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  gap: 8px;
}
.prasmanan-card ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

/* ── MENU PAGE ────────────────────────────────────── */
.menu-section { margin-bottom: 40px; }
.menu-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(183,28,28,.08), transparent);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}
.menu-items { display: flex; flex-direction: column; gap: 2px; }
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 16px;
}
.menu-item:hover { background: var(--bg-warm); }
.menu-item-name { font-weight: 600; color: var(--text); font-size: 15px; }
.menu-item-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.menu-item-price {
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  font-size: 15px;
}
.menu-item-badge {
  font-size: 10px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 700;
  margin-left: 6px;
}

.menu-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.menu-tab {
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--bg-warm);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: background .2s, color .2s;
}
.menu-tab:hover, .menu-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.menu-note {
  background: linear-gradient(90deg, rgba(183,28,28,.07), rgba(255,214,0,.1));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-light);
}

/* ── TENTANG ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-visual {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-visual svg { width: 100%; max-width: 280px; height: auto; }
.about-text h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.2;
}
.about-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
}

.timeline { margin: 24px 0; }
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.timeline-year {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-dark);
  min-width: 44px;
}
.timeline-desc { font-size: 14px; color: var(--text-light); }

.award-list { list-style: none; margin-top: 20px; }
.award-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.award-icon { flex-shrink: 0; margin-top: 2px; }

/* ── GALERI ───────────────────────────────────────── */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.galeri-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform .2s, box-shadow .2s;
}
.galeri-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.galeri-visual {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.galeri-caption {
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.galeri-caption span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 3px;
}

/* CSS art untuk galeri */
.art-piring {
  background: radial-gradient(circle at 50% 50%, #fff 0%, #f5f5f5 60%, #e0e0e0 100%);
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── RESERVASI / FORM ─────────────────────────────── */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}
.form-info {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  color: #fff;
}
.form-info h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 20px;
}
.form-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.form-info-item svg { flex-shrink: 0; margin-top: 2px; }
.info-note {
  background: rgba(255,214,0,.15);
  border: 1px solid rgba(255,214,0,.3);
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  margin-top: 24px;
  line-height: 1.5;
}

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(183,28,28,.1);
}
.form-group textarea { resize: vertical; min-height: 90px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.form-check-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  transition: background .2s, border-color .2s;
}
.form-check-group input[type=checkbox]:checked + label,
.form-check-group label:has(input:checked) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.form-check-group input[type=checkbox] { display: none; }

/* ── FOOTER ───────────────────────────────────────── */
footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 48px 20px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand strong {
  font-size: 18px;
  color: var(--accent);
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px;
  opacity: .75;
  line-height: 1.6;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-contact p {
  font-size: 13px;
  opacity: .75;
  margin-bottom: 6px;
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  opacity: .55;
}

/* ── STAT BAR ─────────────────────────────────────── */
.stats-bar {
  background: var(--accent);
  padding: 24px 20px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.stat-label { font-size: 12px; font-weight: 600; color: var(--primary-dark); }

/* ── PAGE HERO (inner pages) ──────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 48px 20px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  margin-bottom: 8px;
}
.page-hero p { font-size: 15px; opacity: .85; max-width: 500px; margin: 0 auto; }
.breadcrumb {
  font-size: 12px;
  opacity: .6;
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid,
  .prasmanan-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-label { display: flex; }
  nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--primary-dark);
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
  }
  #nav-toggle:checked ~ nav { max-height: 400px; }
  nav ul { flex-direction: column; gap: 0; padding: 12px 0; }
  nav ul li a { padding: 12px 24px; border-radius: 0; font-size: 15px; }
  .header-inner { position: relative; flex-wrap: wrap; }

  .hero { padding: 48px 20px 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .card-grid,
  .galeri-grid { grid-template-columns: 1fr; }
  .keunggulan-grid { grid-template-columns: 1fr; }
  .stats-inner { gap: 24px; }
}
