/* ===== Sakura Tei — Japanese Gourmet site styles ===== */
:root {
  --bg: #fbf7f2;
  --ink: #2b2520;
  --muted: #7a7066;
  --accent: #b3433a;      /* deep vermilion */
  --accent-dark: #8a2f28;
  --gold: #c39b4e;
  --line: #e6ddd2;
  --card: #ffffff;
  --shadow: 0 8px 28px rgba(43, 37, 32, .10);
  --radius: 14px;
  --maxw: 1180px;
  --font: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", system-ui,
          -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-width: 1180px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, #fff 0%, #fdf3ee 100%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}
.brand .brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
}
.brand .brand-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box input {
  width: 220px;
  padding: 9px 14px 9px 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  font-size: 14px;
  outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-box .search-ic {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(195,155,78,.18), transparent 60%),
    linear-gradient(135deg, #2b2520 0%, #4a342c 45%, #7a3128 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(179,67,58,.55), transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 78px 0;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.hero .kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero p {
  font-size: 17px;
  color: #f0e6dd;
  max-width: 520px;
  margin: 0 0 26px;
}
.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art .bowl {
  width: 320px;
  height: 320px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 26px;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(179,67,58,.35);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
  margin-left: 12px;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: #fdf0ee; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head {
  text-align: center;
  margin-bottom: 38px;
}
.section-head .kicker {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.section-head h2 {
  font-size: 32px;
  margin: 8px 0 6px;
}
.section-head p { color: var(--muted); margin: 0; }

.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .15s ease;
  color: var(--ink);
  display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(43,37,32,.15); text-decoration: none; }
.cat-card .thumb { height: 150px; }
.cat-card .cat-body { padding: 18px 20px 22px; }
.cat-card h3 { margin: 0 0 6px; font-size: 19px; }
.cat-card p { margin: 0; color: var(--muted); font-size: 14px; }
.cat-card .more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 700; font-size: 14px; }

/* ---------- Dish grid ---------- */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.dish-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .15s ease;
}
.dish-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(43,37,32,.15); }
.dish-card .thumb { height: 180px; position: relative; }
.dish-card .price-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.dish-card .dish-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.dish-card h3 { margin: 0 0 6px; font-size: 18px; }
.dish-card .desc { color: var(--muted); font-size: 14px; flex: 1; margin: 0 0 14px; }
.dish-card .dish-foot { display: flex; align-items: center; justify-content: space-between; }
.dish-card .stars-inline { font-size: 13px; color: var(--muted); }

/* hidden-by-search state */
.is-hidden { display: none !important; }
.no-results {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 16px;
}

/* ---------- Stars ---------- */
.stars { display: inline-flex; gap: 3px; }
.stars .star {
  width: 20px; height: 20px;
  color: #d9cfc2;
  cursor: default;
}
.stars .star.filled { color: var(--gold); }
.stars.interactive .star { cursor: pointer; transition: transform .08s ease; }
.stars.interactive .star:hover { transform: scale(1.18); }

/* ---------- Breadcrumb ---------- */
.crumb {
  font-size: 13px;
  color: var(--muted);
  padding: 22px 0 4px;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb .sep { margin: 0 8px; }

/* ---------- Detail page ---------- */
.detail {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 44px;
  padding: 36px 0 10px;
}
.detail .media {
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail h1 { font-size: 34px; margin: 0 0 8px; }
.detail .lead { color: var(--muted); font-size: 16px; }
.detail .meta-row { display: flex; align-items: center; gap: 18px; margin: 14px 0 20px; }
.detail .price { font-size: 26px; font-weight: 800; color: var(--accent); }
.detail .rating-summary { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }

.ingredients { margin: 20px 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.ingredients li { position: relative; padding-left: 22px; }
.ingredients li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* ---------- Reviews ---------- */
.reviews { padding-top: 20px; border-top: 1px solid var(--line); margin-top: 30px; }
.reviews h2 { font-size: 24px; }
.review-list { list-style: none; padding: 0; margin: 22px 0; }
.review-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 3px 12px rgba(43,37,32,.05);
}
.review-item .rv-head { display: flex; align-items: center; justify-content: space-between; }
.review-item .rv-name { font-weight: 700; }
.review-item .rv-date { font-size: 12px; color: var(--muted); }
.review-item .rv-body { margin: 8px 0 0; color: #4a4239; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 90px; }
.field .err { color: var(--accent); font-size: 12px; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--accent); background: #fdf3f2; }
.field.invalid .err { display: block; }

/* ---------- Reservation block ---------- */
.reserve {
  background:
    radial-gradient(900px 300px at 0% 0%, rgba(195,155,78,.10), transparent 60%),
    linear-gradient(135deg, #fdf3ee, #fbf7f2);
}
.reserve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.reserve-info h2 { font-size: 30px; margin: 0 0 10px; }
.reserve-info p { color: var(--muted); }
.reserve-info ul { list-style: none; padding: 0; margin: 20px 0 0; }
.reserve-info li { padding: 7px 0 7px 28px; position: relative; }
.reserve-info li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,16,12,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  width: 460px;
  max-width: 92vw;
  padding: 30px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.modal h3 { margin: 0 0 4px; font-size: 24px; }
.modal .modal-sub { color: var(--muted); margin: 0 0 18px; }
.modal dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; margin: 0 0 22px; }
.modal dt { color: var(--muted); font-size: 14px; }
.modal dd { margin: 0; font-weight: 600; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; }

/* ---------- Footer ---------- */
.footer {
  background: #221d19;
  color: #cabfb3;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 54px 0 36px;
}
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; letter-spacing: .5px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #cabfb3; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer .f-brand .logo { width: 38px; height: 38px; }
.footer .f-brand span { color: #fff; font-weight: 700; font-size: 18px; }
.footer p { font-size: 14px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid #3a322c;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #8e857b;
}

/* ---------- Misc ---------- */
.tag {
  display: inline-block;
  background: #fdf0ee;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin-right: 6px;
}
.lead-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
