/* TABERNA NOBE — Mobile-first, cores do logo */
:root {
  --dark: #1A1A18;
  --cream: #E8DDD0;
  --warm: #C4A882;
  --accent: #B8432A;
  --accent-hover: #973622;
  --surface: #F2EDE5;
  --muted: #8A8278;
  --card: rgba(232,221,208,0.06);
  --border: rgba(232,221,208,0.12);
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --ff-hand: 'Caveat', cursive;
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  font-family: var(--ff-body);
  color: var(--dark);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3 { font-family: var(--ff-display); font-weight: 600; line-height: 1.15; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* -- Buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: background .2s, transform .2s; text-align: center;
}
.btn-primary { background: var(--accent); color: var(--cream); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--cream); color: var(--cream); }
.btn-outline:hover { border-color: var(--warm); color: var(--warm); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--dark); height: var(--nav-h);
  display: flex; align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 40px; width: auto; }
.nav-burger {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-size: 22px;
}

/* Mobile menu overlay */
.nav-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--dark); z-index: 99;
  display: flex; flex-direction: column;
  padding: 20px 24px 40px; gap: 6px;
  transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto;
}
.nav-menu.open { transform: translateX(0); }
.nav-menu a {
  color: var(--cream); font-size: 18px; font-weight: 500; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-menu a:hover { color: var(--warm); }

.nav-langs {
  display: flex; gap: 10px; margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.nav-langs button {
  display: flex; align-items: center; gap: 6px;
  color: var(--cream); opacity: .55; font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; transition: all .2s;
}
.nav-langs button.active { opacity: 1; background: rgba(232,221,208,.1); }
.nav-langs button .flag { font-size: 20px; line-height: 1; }

/* ===== HERO ===== */
.hero {
  background: var(--dark); color: var(--cream);
  padding: calc(var(--nav-h) + 40px) 0 50px;
  text-align: center;
}
.hero-logo { width: 90px; height: 90px; margin: 0 auto 20px; border-radius: 16px; }
.hero h1 { font-size: clamp(28px, 7vw, 48px); margin-bottom: 14px; }
.hero h1 em { font-style: italic; color: var(--warm); }
.hero .sub { font-size: 15px; color: rgba(232,221,208,.75); max-width: 520px; margin: 0 auto 24px; }
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn { min-width: 150px; }
.hero-stats {
  display: flex; justify-content: center; gap: 24px; margin-top: 32px;
  flex-wrap: wrap;
}
.hero-stats .stat { text-align: center; }
.hero-stats .val { font-family: var(--ff-display); font-size: 24px; color: var(--warm); display: block; }
.hero-stats .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: rgba(232,221,208,.55); }

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section-dark { background: var(--dark); color: var(--cream); }
.section-light { background: var(--surface); }
.section-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 8px;
}
.section-dark .section-eyebrow { color: var(--warm); }
.section-title { font-size: clamp(24px, 6vw, 38px); margin-bottom: 16px; }
.section-intro { font-size: 15px; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.section-dark .section-intro { color: rgba(232,221,208,.65); }

/* ===== DAILY SPECIAL (chalkboard) ===== */
.board-wrap {
  background: #1C2E28;
  border: 6px solid #3B2C1F;
  border-radius: 10px;
  padding: 24px 20px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0,0,0,.3);
}
.board-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; border-bottom: 1px dashed rgba(232,221,208,.2); padding-bottom: 10px; }
.board-title { font-family: var(--ff-hand); font-size: 24px; color: var(--warm); }
.board-date { font-family: var(--ff-hand); font-size: 16px; color: rgba(232,221,208,.5); }
#chalk-items { font-family: var(--ff-hand); font-size: 20px; color: var(--cream); line-height: 1.5; white-space: pre-line; min-height: 100px; }
.board-edit-btn {
  margin-top: 14px; float: right;
  font-size: 11px; color: rgba(232,221,208,.4); border: 1px solid rgba(232,221,208,.15);
  padding: 5px 12px; border-radius: 999px;
}
.board-edit-btn:hover { color: var(--warm); border-color: var(--warm); }

/* ===== MENU TABS ===== */
.tabs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 28px; padding-bottom: 4px; }
.tabs { display: flex; gap: 8px; }
.tab-btn {
  white-space: nowrap; padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); color: rgba(232,221,208,.65); flex-shrink: 0; transition: all .2s;
}
.tab-btn.active { background: var(--warm); color: var(--dark); border-color: var(--warm); }

.menu-panel { display: none; }
.menu-panel.active { display: block; }
.menu-list { display: flex; flex-direction: column; gap: 16px; max-width: 700px; margin: 0 auto; }
.menu-item { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dotted var(--border); }
.menu-item-info { flex: 1; min-width: 0; }
.menu-item .name { color: var(--cream); font-weight: 600; font-size: 15px; }
.menu-item .desc { color: rgba(232,221,208,.5); font-size: 13px; margin-top: 2px; }
.menu-item .price { color: var(--warm); font-family: var(--ff-display); font-size: 15px; flex-shrink: 0; }
.menu-note { text-align: center; margin-top: 28px; color: rgba(232,221,208,.4); font-size: 12px; }

/* ===== WINES ===== */
.wine-banner { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; overflow: hidden; }
.wine-banner img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
.wine-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.wine-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.wine-card .region { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--warm); background: rgba(196,168,130,.1); padding: 3px 8px; border-radius: 999px; display: inline-block; margin-bottom: 8px; }
.wine-card .name { font-family: var(--ff-display); font-size: 16px; color: var(--cream); margin-bottom: 4px; }
.wine-card .desc { font-size: 12.5px; color: rgba(232,221,208,.5); margin-bottom: 10px; }
.wine-card .price { color: var(--warm); font-weight: 600; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery-grid a { display: block; border-radius: 6px; overflow: hidden; }
.gallery-grid img { width: 100%; height: 140px; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.05); }

/* ===== REVIEWS ===== */
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 16px; }
.review-card .stars { color: var(--warm); font-size: 12px; letter-spacing: 2px; margin-bottom: 10px; }
.review-card .quote { color: rgba(232,221,208,.8); font-size: 14px; line-height: 1.6; }
.review-card .author { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.review-card .avatar { width: 28px; height: 28px; border-radius: 50%; background: rgba(232,221,208,.08); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--warm); flex-shrink: 0; }
.review-card .author span { font-size: 12.5px; color: rgba(232,221,208,.5); }

.rating-box { text-align: center; margin-bottom: 28px; }
.rating-box .big { font-family: var(--ff-display); font-size: 42px; color: var(--warm); }
.rating-box .stars-big { color: var(--warm); font-size: 18px; letter-spacing: 3px; }
.rating-box .count { font-size: 12.5px; color: rgba(232,221,208,.45); margin-top: 4px; }

/* ===== VISIT ===== */
.visit-grid { display: flex; flex-direction: column; gap: 24px; }
.visit-info { display: flex; flex-direction: column; gap: 10px; }
.visit-card { background: #fff; border: 1px solid rgba(26,26,24,.06); border-radius: 10px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.visit-card .ico { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.visit-card .body { flex: 1; min-width: 0; }
.visit-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.visit-card span, .visit-card a { font-size: 13px; color: var(--muted); word-break: break-word; }
.hours-table { font-size: 13px; color: var(--muted); }
.hours-table .day { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.hours-table .day.today { color: var(--accent); font-weight: 700; }
.map-box { border-radius: 10px; overflow: hidden; height: 260px; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: rgba(232,221,208,.5); padding: 40px 0 20px; }
.footer-top { display: flex; flex-direction: column; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.footer-logo img { height: 44px; margin-bottom: 8px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-col h4 { color: var(--cream); font-size: 13px; margin-bottom: 8px; }
.footer-col a, .footer-col p { display: block; font-size: 12.5px; margin-bottom: 6px; }
.footer-col a:hover { color: var(--warm); }
.footer-social { display: flex; gap: 8px; margin-top: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.footer-social a:hover { border-color: var(--warm); color: var(--warm); }
.footer-bottom { font-size: 11px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; background: rgba(26,26,24,.8); display: none; z-index: 200; padding: 16px; overflow-y: auto; }
.modal.open { display: flex; align-items: flex-start; justify-content: center; }
.modal-box { background: var(--surface); border-radius: 12px; padding: 24px 20px; max-width: 460px; width: 100%; margin: 40px auto; }
.modal-box h3 { font-size: 18px; margin-bottom: 6px; }
.modal-box .hint { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.modal-box textarea, .modal-box input { width: 100%; border: 1px solid rgba(26,26,24,.12); border-radius: 6px; padding: 10px; font-size: 14px; margin-bottom: 10px; font-family: var(--ff-body); }
.modal-box textarea { min-height: 120px; resize: vertical; }
.modal-error { color: var(--accent); font-size: 12px; display: none; margin-bottom: 8px; }
.modal-btns { display: flex; gap: 8px; }
.modal-btns button { flex: 1; padding: 10px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.modal-cancel { border: 1px solid rgba(26,26,24,.12); color: var(--dark); }
.modal-save { background: var(--accent); color: var(--cream); }
.json-output { display: none; margin-top: 16px; border-top: 1px dashed rgba(26,26,24,.12); padding-top: 12px; }
.json-output p { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.json-output pre { background: var(--dark); color: var(--warm); font-size: 11px; padding: 12px; border-radius: 8px; overflow-x: auto; max-height: 180px; margin-bottom: 10px; }
.json-copy { width: 100%; background: var(--dark); color: var(--cream); padding: 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* ===== TABLET (>=640px) ===== */
@media(min-width:640px){
  .wrap { padding: 0 24px; }
  .section { padding: 80px 0; }
  .hero { padding: calc(var(--nav-h) + 60px) 0 70px; }
  .hero h1 { font-size: clamp(36px,5.5vw,52px); }
  .hero .sub { font-size: 17px; }
  .hero-logo { width: 100px; height: 100px; }
  .board-wrap { padding: 30px 28px; }
  #chalk-items { font-size: 22px; }
  .menu-list { max-width: 800px; }
  .wine-banner { flex-direction: row; align-items: center; }
  .wine-banner img { width: 240px; height: 160px; flex-shrink: 0; }
  .wine-cards { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid img { height: 170px; }
  .reviews-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .visit-grid { flex-direction: row; gap: 32px; }
  .visit-info { flex: 1; }
  .map-box { flex: 1; min-height: 360px; height: auto; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* ===== DESKTOP (>=1024px) ===== */
@media(min-width:1024px){
  :root { --nav-h: 64px; }
  .wrap { padding: 0 32px; }
  .section { padding: 100px 0; }
  .hero { padding: calc(var(--nav-h) + 80px) 0 90px; }
  .hero h1 { font-size: 52px; }
  .hero-logo { width: 110px; height: 110px; }
  .section-title { font-size: 38px; }
  .wine-cards { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid img { height: 200px; }
  .reviews-list { grid-template-columns: repeat(3, 1fr); }
}

@media(prefers-reduced-motion:reduce){
  html { scroll-behavior: auto; }
  .nav-menu { transition: none; }
}
