/* Nghị Kitchen – giao diện "bếp": nền kem, chữ nâu đậm, cam đất + vàng nghệ. Không thư viện ngoài. */
:root {
  --ink: #231A14; --ink-2: #4A3B30; --muted: #7A6A5C;
  --cream: #FBF5EC; --paper: #F3E8D6; --line: #E4D5BF; --white: #FFFDF9;
  --primary: #B5431F; --primary-d: #8F3216; --accent: #E8A33D; --ok: #3F6B2E; --err: #B42318;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 14px; --shadow: 0 1px 2px rgba(35,26,20,.06), 0 8px 24px rgba(35,26,20,.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-d); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--primary); margin-bottom: .6em; }
.lead { font-size: 1.12rem; color: var(--ink-2); }

/* nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid var(--primary); background: var(--primary); color: #fff; font: 600 1rem var(--sans);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--primary-d); border-color: var(--primary-d); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: .92rem; }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-ghost-l { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-l:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* đầu trang */
.top { position: sticky; top: 0; z-index: 50; background: rgba(251,245,236,.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo b { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; }
.logo small { display: block; font-size: .74rem; color: var(--muted); }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center;
  font: italic 700 1.3rem var(--serif); box-shadow: inset 0 0 0 3px var(--cream), 0 0 0 2px var(--primary); }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.menu a:not(.btn):hover, .menu a[aria-current] { color: var(--primary); }
.menu a[aria-current] { box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.menu .btn { margin-left: 8px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.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); }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 16px; }
.crumbs a { color: var(--muted); }

/* hero */
.hero { background: var(--ink); color: #F6EEE2; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(600px 400px at 85% 10%, rgba(232,163,61,.22), transparent 60%),
  radial-gradient(500px 360px at 5% 100%, rgba(181,67,31,.35), transparent 60%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 72px 0 80px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .eyebrow { color: var(--accent); }
.hero .lead { color: #E3D6C4; max-width: 560px; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.facts li { display: flex; flex-direction: column; }
.facts b { font: 700 1.6rem var(--serif); color: #fff; }
.facts span { font-size: .85rem; color: #C9B9A4; }

/* bảng thực đơn */
.menuboard { background: var(--cream); color: var(--ink); border-radius: 6px; padding: 28px 28px 22px; position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); transform: rotate(1.2deg); }
.menuboard::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); border-radius: 3px; pointer-events: none; }
.mb-h { font: italic 700 1.7rem var(--serif); text-align: center; margin: 0; color: var(--primary); }
.mb-sub { text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 2px 0 14px; }
.menuboard ul { list-style: none; padding: 0; margin: 0; }
.menuboard li a { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line); }
.menuboard li:last-child a { border-bottom: 0; }
.menuboard li a:hover .mn { color: var(--primary); }
.mn { font-weight: 600; font-size: .95rem; }
.dots { flex: 1; border-bottom: 2px dotted #CDB99E; transform: translateY(-4px); min-width: 16px; }
.mp { font: italic 600 .95rem var(--serif); color: var(--primary); white-space: nowrap; }
.mb-more { display: block; text-align: center; margin-top: 12px; font-weight: 600; font-size: .92rem; }

/* khối nội dung */
.sec { padding: 64px 0; }
.sec-h { margin-bottom: 28px; max-width: 720px; }
.sec-h p:not(.eyebrow) { color: var(--ink-2); }
.paper { background: var(--paper); }
.page-h { padding: 32px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card[hidden] { display: none; }
.card-b { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card h3 a:hover { color: var(--primary); }
.card-b > p:not(.price) { color: var(--ink-2); font-size: .94rem; flex: 1; }
.price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 12px; margin: 0; }
.price span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.price b { font: italic 700 1.1rem var(--serif); color: var(--primary); }
.thumb { --c: var(--primary); aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18) 0 2px, transparent 3px) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); }
.thumb::after { content: ''; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 0 0 10px rgba(255,255,255,.08); }
.mono { position: relative; z-index: 1; font: italic 700 3rem var(--serif); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.kind { position: absolute; left: 12px; top: 12px; z-index: 1; background: rgba(255,253,249,.92); color: var(--ink); font-size: .74rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; }
.thumb.big { border-radius: var(--r); aspect-ratio: 4 / 3; }
.thumb.big .mono { font-size: 5rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mode { background: var(--white); border-radius: var(--r); padding: 28px; border-top: 4px solid var(--primary); }
.mode + .mode { border-top-color: var(--accent); }
.mode a { font-weight: 600; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { counter-increment: s; background: var(--white); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: italic 700 2rem var(--serif); color: var(--accent); }
.steps b { display: block; margin: 4px 0 6px; font-size: 1.05rem; }
.steps span { color: var(--ink-2); font-size: .94rem; }
.faq { background: var(--white); border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--primary); }
.faq[open] summary::after { content: '–'; }
.faq p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }
.band { background: var(--primary); color: #fff; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 0; flex-wrap: wrap; }
.band h2 { color: #fff; margin-bottom: .25em; }
.band p { margin: 0; color: #FBE3D6; max-width: 560px; }
.band-act { display: flex; gap: 12px; flex-wrap: wrap; }
.band .btn { background: #fff; color: var(--primary); border-color: #fff; }
.band .btn:hover { background: var(--cream); }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.band .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* danh sách: lọc */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 500 .92rem var(--sans); color: var(--ink); cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sec[hidden] { display: none; }

/* trang khoá */
.course-h { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: center; padding: 24px 0 40px; }
.course-b { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.course-main h2 { font-size: 1.5rem; margin-top: 1.2em; }
.course-main h2:first-child { margin-top: 0; }
.course-side { position: sticky; top: 88px; background: var(--white); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.info { margin: 0 0 18px; }
.info div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.info dt { color: var(--muted); font-size: .9rem; }
.info dd { margin: 0; font-weight: 600; text-align: right; }
.ticks, .dotlist { padding: 0; list-style: none; margin: 0 0 1em; }
.ticks li, .dotlist li { position: relative; padding: 6px 0 6px 30px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 16px; height: 9px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.dotlist li::before { content: ''; position: absolute; left: 6px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose h2 { font-size: 1.4rem; margin-top: 1.4em; }

/* đăng ký */
.reg { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0 64px; align-items: start; }
.form, .done { background: var(--white); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 600; font-size: .94rem; margin: 14px 0 6px; }
.form label:first-child { margin-top: 0; }
.form i { color: var(--primary); font-style: normal; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #D5C3A8; border-radius: 10px;
  background: #fff; font: 16px var(--sans); color: var(--ink); }
.form textarea { min-height: 88px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(181,67,31,.15); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; margin: 18px 0; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 12px 0 0; min-height: 1.4em; font-size: .94rem; }
.form-msg.err { color: var(--err); }
.done h2 { color: var(--ok); }

/* liên hệ */
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.ct { background: var(--white); border-radius: var(--r); padding: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.ct b { display: block; font-family: var(--serif); font-size: 1.15rem; }
.ct span { color: var(--ink-2); }

/* chân trang */
.foot { background: var(--ink); color: #CDBEAA; padding: 48px 0 24px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot a { display: block; color: #E8DCCB; text-decoration: none; padding: 3px 0; }
.foot a:hover { color: var(--accent); }
.foot-brand { font: italic 700 1.5rem var(--serif); color: #fff; margin-bottom: .4em; }
.foot-h { font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.foot-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; font-size: .82rem; color: #9E8E7A; }
.mbar { display: none; }

/* điện thoại / máy tính bảng */
@media (max-width: 960px) {
  .hero-in, .course-h, .course-b, .reg { grid-template-columns: 1fr; gap: 32px; }
  .menuboard { transform: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .course-side { position: static; }
  .course-h .thumb.big { max-width: 420px; }
}
@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu a[aria-current] { box-shadow: none; }
  .menu .btn { margin: 12px 0 0; }
  .hero-in { padding: 40px 0 48px; }
  .sec { padding: 44px 0; }
  .two, .steps, .contact, .foot-grid { grid-template-columns: 1fr; }
  .form, .done, .menuboard { padding: 20px; }
  .band-in { padding: 36px 0; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .mbar a { display: grid; place-items: center; min-height: 56px; font-weight: 600; text-decoration: none; color: var(--ink); }
  .mbar a + a { border-left: 1px solid var(--line); }
  .mbar .go { background: var(--primary); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
