/* Casa Basilico — Side Journey (shared by all pages) */
:root {
  --bg: #f7f1e6;
  --bg-2: #efe5d3;
  --card: #fffaf2;
  --ink: #2b2520;
  --mute: #6d6358;
  --line: #e0d3bd;
  --basil: #2f4b35;
  --basil-2: #22382a;
  --tomato: #c4442b;
  --cream: #f7f1e6;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "IBM Plex Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-h: 68px;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; font-variant-numeric: lining-nums; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.it { font-family: var(--serif); font-style: italic; font-weight: 500; }
.kicker { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--mute); margin-bottom: 14px; }
.kicker .it { font-size: 20px; color: var(--tomato); }
.kicker .n { font-size: 13px; letter-spacing: .08em; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 22px; }
.lead { color: var(--mute); font-size: 18px; max-width: 34em; }
section { position: relative; }
.sec { padding: 110px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.sec-head .lead { margin-top: 12px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--basil); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.more:hover { color: var(--tomato); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 16px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--tomato); color: #fff; }
.btn-red:hover { background: #a93822; }
.btn-basil { background: var(--basil); color: var(--cream); }
.btn-basil:hover { background: var(--basil-2); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-green { background: #06c755; color: #fff; }
.btn-green:hover { background: #05a647; }

/* Nav */
nav { position: sticky; top: 0; z-index: 50; background: rgba(247,241,230,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
nav.scrolled { border-bottom-color: var(--line); }
nav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.logo { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 25px; letter-spacing: -.01em; color: var(--basil); white-space: nowrap; }
.logo b { color: var(--tomato); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 15.5px; font-weight: 500; color: var(--mute); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.lang { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--mute); }
.lang button { background: none; border: 0; padding: 6px 3px; cursor: pointer; font-weight: 500; }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 5px; }
nav .btn { height: 44px; padding: 0 22px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; margin-right: -10px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .menu-btn span:nth-child(2) { opacity: 0; }
nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Open status */
.status { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #aaa; flex: none; }
.status.open i { background: #3ecf6e; box-shadow: 0 0 0 4px rgba(62,207,110,.22); }
.status.break i { background: #e8b03a; }
.status.closed i { background: var(--tomato); }

/* Page header (inner pages) */
.phead { position: relative; min-height: 380px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.phead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.15) 0%, rgba(20,16,12,.7) 100%); }
.phead .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 48px; padding-top: 80px; }
.phead .kicker { color: rgba(255,255,255,.85); }
.phead .kicker .it { color: #fff; }
.phead h1 { font-size: clamp(36px, 5vw, 60px); }
.phead p.sub { margin-top: 10px; font-size: 18px; color: rgba(255,255,255,.88); max-width: 36em; }

/* Route (journey stations) */
.route { display: flex; align-items: center; position: relative; }
.route::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: var(--line); transform: translateY(-50%); }
.route .fill { position: absolute; left: 6px; top: 50%; height: 2px; background: var(--tomato); transform: translateY(-50%); width: 0; transition: width .15s linear; }
.route a, .route button { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--mute); font-family: var(--serif); font-style: italic; font-size: 16px; }
.route a:first-of-type, .route button:first-of-type { align-items: flex-start; }
.route a:last-of-type, .route button:last-of-type { align-items: flex-end; }
.route .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: background .2s, border-color .2s, transform .2s; }
.route .on { color: var(--ink); }
.route .on .dot { background: var(--tomato); border-color: var(--tomato); }
.route .now .dot { transform: scale(1.3); }
.route .lbl { order: -1; line-height: 1.2; white-space: nowrap; }
.route.below .lbl { order: 1; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--mute); }
.tags span { display: inline-flex; align-items: center; gap: 6px; }
.tags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.tags .veg::before { background: #4d8a4f; }
.tags .hot::before { background: var(--tomato); }
.tags .alc::before { background: #7b3148; }
.price { font-weight: 600; font-size: 19px; color: var(--ink); white-space: nowrap; }
.price small { font-size: 14px; font-weight: 500; color: var(--mute); margin-left: 3px; }

/* Riservato table card (home + reserve) */
.tent { position: relative; background: #fffaf2; color: var(--ink); border-radius: 8px; padding: 46px 36px 34px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.32); }
.tent::before { content: ""; position: absolute; inset: 12px; border: 1px solid #d8c4a2; border-radius: 4px; pointer-events: none; }
.tent::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, rgba(90,60,30,.12), rgba(90,60,30,0)); pointer-events: none; }
.tent .rz { display: block; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 50px; line-height: 1.05; color: var(--basil); }
.tent .rz-sub { display: block; font-size: 14.5px; color: var(--mute); margin-top: 6px; }
.orn { display: flex; align-items: center; gap: 10px; width: 150px; margin: 16px auto 22px; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: #d8c4a2; }
.orn i { width: 7px; height: 7px; background: var(--tomato); transform: rotate(45deg); }
.sel { width: 100%; appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d6358' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center; border-radius: 10px; padding: 12px 34px 12px 12px; font-size: 15.5px; font-weight: 500; cursor: pointer; }
.sel:focus { outline: none; border-color: var(--basil); }

/* Reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv-img { overflow: hidden; }
.rv-img img { transform: scale(1.06); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.rv-img.in img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .rv-img img { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* CTA band */
.band { background: var(--basil); color: var(--cream); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
.band h2 { font-size: clamp(26px, 3vw, 36px); }
.band p { color: rgba(247,241,230,.75); margin-top: 6px; }
.band .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.band .btn-line { border-color: rgba(247,241,230,.6); color: var(--cream); }
.band .btn-line:hover { background: var(--cream); color: var(--basil); }

/* Footer */
footer { background: var(--basil-2); color: rgba(247,241,230,.72); font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
footer .logo { color: var(--cream); font-size: 30px; display: inline-block; margin-bottom: 10px; }
footer h4 { margin: 0 0 10px; color: var(--cream); font-size: 15px; font-weight: 600; }
footer li { margin-bottom: 4px; }
footer a:hover { color: var(--cream); }
footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(247,241,230,.14); padding-top: 20px; font-size: 13.5px; }

.wd-sign { background: #111; color: #8a8a8a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif; }
.wd-sign a { display: flex; align-items: center; justify-content: center; gap: 2px 5px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 16px 20px; font-size: 13px; line-height: 1.4; color: inherit; text-decoration: none; }
.wd-sign a > span { white-space: nowrap; }
.wd-sign b { color: #fff; font-weight: 600; letter-spacing: .02em; }
.wd-sign a:hover { color: #c4c4c4; }
.wd-sign a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* Mobile action bar */
.actionbar { display: none; }

/* Dish dialog (menu + home) */
dialog.dish { width: min(880px, calc(100% - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
dialog.dish::backdrop { background: rgba(25,20,15,.6); }
dialog.dish .in { display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100svh - 48px); }
dialog.dish .ph { min-height: 100%; }
dialog.dish .ph img { width: 100%; height: 100%; object-fit: cover; }
dialog.dish .tx { padding: 40px 36px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
dialog.dish .cat { font-size: 14px; color: var(--mute); }
dialog.dish h3 { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 32px; line-height: 1.15; }
dialog.dish p { color: #4b433b; }
dialog.dish .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
dialog.dish .x { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,250,242,.94); font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }

@media (max-width: 960px) {
  .nav-links a:not(.btn) { display: none; }
  .menu-btn { display: block; }
  nav .wrap { gap: 16px; }
  .nav-links { gap: 14px; }
  .drawer { position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none; box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  nav.open .drawer { display: block; }
  .drawer a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; }
  .drawer a[aria-current="page"] { color: var(--tomato); }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (min-width: 961px) { .drawer { display: none !important; } }

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  body { font-size: 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 20px; }
  .sec { padding: 72px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
  .lead { font-size: 16.5px; }
  .logo { font-size: 22px; }
  nav .btn { display: none; }
  .phead { min-height: 300px; }
  .phead .wrap { padding-bottom: 32px; }
  .band .wrap { flex-direction: column; align-items: flex-start; padding-top: 48px; padding-bottom: 48px; }
  footer .wrap { grid-template-columns: 1fr; gap: 26px; padding-top: 44px; }
  .route a, .route button { font-size: 14px; }
  .actionbar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(247,241,230,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .actionbar a { height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 15px; background: var(--bg-2); }
  .actionbar a.go { background: var(--tomato); color: #fff; }
  .actionbar svg { width: 18px; height: 18px; }
  dialog.dish { max-height: calc(100svh - 24px); width: calc(100% - 24px); }
  dialog.dish .in { grid-template-columns: minmax(0,1fr); max-height: calc(100svh - 24px); overflow-y: auto; }
  dialog.dish .ph img { aspect-ratio: 4 / 3; height: auto; }
  dialog.dish .tx { padding: 24px 22px 24px; overflow: visible; }
  dialog.dish h3 { font-size: 27px; }
}
