:root {
  --paper: #f8f4ec;
  --paper-strong: #fffdf9;
  --paper-deep: #eee5d7;
  --ink: #2b261f;
  --muted: #746b60;
  --line: rgba(91, 70, 43, .17);
  --gold: #b78337;
  --gold-deep: #8e6325;
  --bronze: #9a7a55;
  --shadow: 0 18px 50px rgba(82, 58, 31, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
body:has(.lightbox:not([hidden])) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }

.hero { min-height: min(760px, 92vh); position: relative; isolation: isolate; background: var(--paper-deep) var(--hero-image) center / cover no-repeat; overflow: hidden; }
.hero-wash { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(255,252,246,.98) 0%, rgba(255,252,246,.92) 38%, rgba(248,244,236,.5) 73%, rgba(248,244,236,.12) 100%); }
.hero-content { min-height: min(760px, 92vh); display: flex; flex-direction: column; padding-block: 22px 34px; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap: 20px; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.brand-mark img { width: 108px; height: 62px; border-radius: 0; object-fit: cover; object-position: center; }
.monogram { display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--gold); color:var(--gold-deep); border-radius:50%; font-family:"Cormorant Garamond",Georgia,serif; font-size:25px; line-height:1; }
.text-link { color: var(--gold-deep); font-size:14px; font-weight:600; }
.text-link span { margin-left: 5px; }
.hero-copy { margin-block: auto; padding: 70px 0 44px; max-width: 570px; }
.kicker, .eyebrow, .footer-label { color: var(--gold-deep); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; margin: 0 0 10px; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: .98; margin: 0; }
h1 { font-size: clamp(5rem, 18vw, 10rem); letter-spacing: .08em; text-transform: uppercase; color: #3a2d20; }
h2 { font-size: clamp(2.7rem, 7vw, 5rem); letter-spacing: -.01em; }
h3 { font-size: 30px; }
.tagline { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.65rem, 4vw, 2.6rem); margin: 16px 0 26px; color: #5a4938; }
.hero-actions { display:flex; flex-wrap:wrap; gap: 12px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap: 10px; border: 1px solid transparent; min-height: 48px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(92,64,27,.14); }
.button-primary { color: #fffaf0; background: var(--gold-deep); }
.button-ghost { border-color: var(--gold); color: var(--gold-deep); background: rgba(255,253,249,.55); }
.hero-note { display:flex; align-items:center; gap: 12px; color: #5d5247; font-size:13px; max-width: 450px; }
.hero-note-line { width: 42px; height: 1px; background: var(--gold); flex: 0 0 auto; }

main { overflow: clip; }
.featured-section, .menu-section { padding-block: 82px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom: 30px; }
.section-rule { display:block; flex:1; max-width:300px; height:1px; background:var(--line); margin-bottom: 8px; }
.featured-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.featured-card { min-height: 360px; position:relative; overflow:hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #cdb99e; }
.featured-card img { width:100%; height:100%; min-height:360px; object-fit:cover; transition: transform .5s ease; }
.featured-card:hover img { transform:scale(1.04); }
.featured-overlay { position:absolute; inset:auto 0 0; display:flex; flex-direction:column; gap:4px; padding: 64px 20px 18px; color: white; background:linear-gradient(transparent, rgba(29,20,11,.8)); }
.featured-overlay .eyebrow { color:#f6ddb4; margin:0; }
.featured-overlay strong { font-family:"Cormorant Garamond",Georgia,serif; font-size:28px; line-height:1; }
.featured-overlay span:last-child { color:#f8e8c9; font-size:14px; }

.menu-heading { align-items:end; }
.menu-tools { display:flex; align-items:center; gap:10px; }
.search-box { width:min(300px, 58vw); display:flex; align-items:center; gap:8px; padding: 10px 14px; border:1px solid var(--line); border-radius:999px; background:var(--paper-strong); color:var(--gold-deep); }
.search-box span { font-size:23px; line-height:1; }
.search-box input { width:100%; border:0; outline:0; background:transparent; color:var(--ink); min-width:0; }
.search-box input::placeholder { color:var(--muted); }
.filter-toggle, .clear-filters { border:1px solid var(--line); background:var(--paper-strong); color:var(--ink); border-radius:999px; padding:11px 15px; font-weight:600; font-size:13px; }
.filter-panel { display:flex; align-items:center; flex-wrap:wrap; gap:18px; padding:16px; margin:-10px 0 20px; border:1px solid var(--line); background:rgba(255,253,249,.75); border-radius:18px; }
.filter-panel[hidden] { display:none; }
.filter-group { display:flex; align-items:center; flex-wrap:wrap; gap:12px; font-size:14px; }
.filter-label { color:var(--gold-deep); text-transform:uppercase; letter-spacing:.12em; font-size:11px; font-weight:700; }
.filter-group label { display:inline-flex; align-items:center; gap:6px; }
.filter-group input { accent-color:var(--gold-deep); }
.clear-filters { margin-left:auto; color:var(--gold-deep); }
.category-tabs { position:sticky; top:0; z-index:10; display:flex; gap:8px; overflow-x:auto; padding:12px 0; margin-bottom:46px; background:linear-gradient(var(--paper) 75%, transparent); scrollbar-width:none; }
.category-tabs::-webkit-scrollbar { display:none; }
.category-tab { flex:0 0 auto; border:1px solid var(--line); background:rgba(255,253,249,.84); color:var(--muted); padding:12px 19px; border-radius:999px; letter-spacing:.12em; font-size:12px; font-weight:700; }
.category-tab.is-active, .category-tab:hover { background:var(--gold-deep); border-color:var(--gold-deep); color:#fffaf0; }
.menu-group { margin-bottom: 70px; scroll-margin-top: 70px; }
.group-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:20px; border-bottom:1px solid var(--line); padding-bottom:12px; }
.group-heading h3 { font-size: 38px; }
.group-heading span { color:var(--muted); font-size:13px; }
.menu-grid { display:grid; grid-template-columns:1fr; gap:10px; }
.menu-card { display:grid; grid-template-columns:78px minmax(0,1fr) auto; align-items:center; min-width:0; min-height:82px; border:1px solid rgba(91,70,43,.12); background:var(--paper-strong); border-radius:10px; overflow:hidden; box-shadow:0 4px 14px rgba(88,62,34,.06); transition:transform .2s ease, box-shadow .2s ease; }
.menu-card:hover { transform:translateY(-1px); box-shadow:0 7px 20px rgba(88,62,34,.11); }
.menu-card.is-unavailable { opacity:.68; }
.image-button { position:relative; display:block; width:78px; height:78px; aspect-ratio:auto; padding:0; border:0; overflow:hidden; background:var(--paper-deep); }
.image-button img { width:100%; height:100%; object-fit:cover; transition: transform .35s ease; }
.image-button:hover img { transform:scale(1.04); }
.image-expand { display:none; }
.menu-card-body { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:2px 8px; min-width:0; padding:10px 8px 10px 12px; }
.menu-card-meta { grid-column:1 / -1; display:flex; justify-content:space-between; gap:8px; align-items:center; min-width:0; margin:0; }
.menu-card-meta .eyebrow { min-width:0; margin:0; color:var(--bronze); letter-spacing:.1em; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.availability { font-size:10px; font-weight:700; white-space:nowrap; }
.availability.available { color:#4e7a5e; }
.availability.unavailable { color:#a85443; }
.menu-card h3 { grid-column:1 / -1; min-width:0; font-family:"Cormorant Garamond",Georgia,serif; font-size:22px; line-height:1.04; color:#34291f; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.menu-card-description { display:none; }
.menu-card-footer { grid-column:1 / -1; display:flex; align-items:center; justify-content:flex-start; gap:6px; min-width:0; margin:0; }
.menu-card-footer strong { color:#c9712f; font-size:14px; white-space:nowrap; }
.menu-card .badges { display:none; }
.badges { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:5px; }
.badge { display:inline-flex; align-items:center; min-height:24px; border:1px solid rgba(183,131,55,.45); color:var(--gold-deep); border-radius:999px; padding:3px 8px; font-size:10px; font-weight:700; }
.item-details-button { align-self:center; margin-right:10px; border:1px solid rgba(144,154,102,.22); border-radius:5px; padding:8px 10px; color:#8d9765; background:#f1f3e8; font-size:11px; line-height:1; white-space:nowrap; transition:background .2s ease, color .2s ease, transform .2s ease; }
.item-details-button:hover { color:#6f794b; background:#e6ead8; transform:translateY(-1px); }
.empty-state { text-align:center; border:1px dashed var(--line); border-radius:var(--radius); padding:54px 18px; color:var(--muted); }
.empty-state[hidden] { display:none; }
.empty-icon { display:grid; place-items:center; margin:0 auto 12px; width:46px; height:46px; color:var(--gold-deep); background:var(--paper-deep); border-radius:50%; font-size:25px; }
.empty-state h3 { color:var(--ink); font-size:32px; }

.details-modal { position:fixed; inset:0; z-index:101; display:grid; place-items:center; padding:18px; background:rgba(38,26,15,.66); }
.details-modal[hidden] { display:none; }
.details-dialog { position:relative; width:min(440px,100%); max-height:90vh; overflow:auto; border-radius:18px; background:var(--paper-strong); box-shadow:0 24px 80px rgba(0,0,0,.28); }
.details-dialog > img { width:100%; aspect-ratio:1.35 / 1; object-fit:cover; }
.details-dialog-body { padding:20px; }
.details-dialog-body .eyebrow { margin-bottom:8px; }
.details-dialog-body h3 { color:var(--ink); font-size:36px; }
.details-dialog-body > p:not(.eyebrow) { color:var(--muted); margin:10px 0 18px; font-size:14px; line-height:1.55; }
.details-dialog-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.details-dialog-price { color:#c9712f; font-size:18px; }
.details-dialog-badges { margin-top:14px; }
.details-dialog-close { position:absolute; top:10px; right:12px; z-index:1; display:grid; place-items:center; width:34px; height:34px; border:1px solid rgba(255,255,255,.48); border-radius:50%; color:#fffaf0; background:rgba(46,31,15,.58); font-size:25px; line-height:1; }

.site-footer { position:relative; border-top:1px solid var(--line); padding:50px 0 20px; background:var(--paper-strong); text-align:center; }
.footer-card { display:flex; flex-direction:column; align-items:center; }
.footer-qr { display:grid; place-items:center; width:132px; height:132px; padding:8px; margin:0 auto 14px; border:1px solid rgba(91,70,43,.16); background:#fff; box-shadow:0 5px 16px rgba(82,58,31,.08); }
.footer-qr img, .footer-qr canvas { display:block; width:114px !important; height:114px !important; }
.footer-qr-fallback { color:var(--gold-deep); font-size:13px; margin:-4px 0 12px; }
.footer-title { color:var(--ink); font-family:"Cormorant Garamond",Georgia,serif; font-size:24px; line-height:1.1; letter-spacing:.02em; margin:0 0 2px; }
.footer-phone { color:var(--muted); font-size:14px; }
.footer-contact-line { display:inline-flex; align-items:center; justify-content:center; gap:7px; color:var(--muted); font-size:13px; line-height:1.45; }
.footer-address { max-width:360px; margin:10px 0 0; }
.footer-email { margin-top:4px; color:#42b9a6; }
.footer-hours { color:var(--muted); font-size:12px; margin:8px 0 0; }
.footer-contact-line > span { color:var(--gold-deep); font-size:15px; }
.footer-email > span { color:#42b9a6; }
.social-links { display:flex; align-items:center; gap:13px; margin-top:16px; }
.social-link { display:grid; place-items:center; width:32px; height:32px; border:1px solid var(--line); border-radius:50%; background:var(--paper); transition:transform .2s ease, box-shadow .2s ease; }
.social-link:hover { transform:translateY(-2px); box-shadow:0 5px 14px rgba(82,58,31,.14); }
.social-link svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.social-link.social-facebook svg path { fill:currentColor; stroke:none; }
.social-link.social-facebook { color:#4267a8; }
.social-link.social-instagram { color:#d94c79; }
.social-link.social-whatsapp { color:#44b879; }
.footer-copy { max-width:360px; color:var(--muted); margin:16px 0 0; font-size:12px; }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-top:22px; margin-top:26px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.back-to-top { position:absolute; right:max(18px, calc((100% - 1180px) / 2)); bottom:78px; display:grid; place-items:center; width:42px; height:42px; border:0; border-radius:50%; color:#fffaf0; background:var(--gold-deep); box-shadow:0 7px 18px rgba(82,58,31,.22); font-size:23px; line-height:1; }
.back-to-top:hover { background:var(--gold); transform:translateY(-2px); }

.lightbox { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:22px; background:rgba(38,26,15,.86); }
.lightbox[hidden] { display:none; }
.lightbox img { max-width:min(100%, 980px); max-height:88vh; object-fit:contain; border-radius:18px; box-shadow:0 24px 80px rgba(0,0,0,.35); }
.lightbox-close { position:absolute; top:15px; right:17px; border:0; background:transparent; color:#fffaf0; font-size:38px; line-height:1; }

@media (max-width: 760px) {
  .container { width:min(100% - 28px, 1180px); }
  .hero, .hero-content { min-height: 710px; }
  .hero { background-position: 62% center; }
  .hero-wash { background:linear-gradient(180deg, rgba(255,252,246,.97) 0%, rgba(255,252,246,.85) 46%, rgba(248,244,236,.42) 100%); }
  .hero-copy { padding-top:80px; }
  .featured-section, .menu-section { padding-block:62px; }
  .section-heading { align-items:flex-start; flex-direction:column; }
  .section-rule { width:100%; max-width:none; }
  .featured-grid { grid-template-columns:1fr; }
  .featured-card, .featured-card img { min-height: 300px; }
  .menu-heading { gap:18px; }
  .menu-tools { width:100%; }
  .search-box { flex:1; width:auto; }
  .footer-bottom { flex-direction:column; padding-top:18px; margin-top:24px; }
  .back-to-top { right:14px; bottom:78px; }
}

@media (min-width: 760px) {
  .menu-grid { grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
}

@media (min-width: 1100px) {
  .hero-content { padding-block:30px 44px; }
  .hero-copy { padding-bottom:86px; }
  .menu-grid { grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; }
}
