/* restaurant template — warm, appetizing, image-forward. */

:root {
  --container: 960px;
  --container-wide: 1120px;
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --radius: 8px; --radius-lg: 14px;
  --transition: 180ms ease;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", "Georgia", "Source Serif Pro", "Iowan Old Style", serif;
}

[data-density="compact"]     { --section-pad: var(--space-7); --hero-pad: 200px; }
[data-density="comfortable"] { --section-pad: var(--space-8); --hero-pad: 260px; }
[data-density="airy"]        { --section-pad: var(--space-9); --hero-pad: 320px; }

[data-theme="light"] { --bg: #faf8f5; --fg: #1c1917; --muted: #78716c; --surface: #f5f0eb; --border: #e7e0d6; --on-primary: #faf8f5; --hero-overlay: rgba(28,25,23,0.55); --hero-fg: #ffffff; }
[data-theme="dark"]  { --bg: #1c1917; --fg: #faf8f5; --muted: #a8a29e; --surface: #292524; --border: #3d3835; --on-primary: #1c1917; --hero-overlay: rgba(0,0,0,0.6); --hero-fg: #ffffff; }
[data-theme="ai"]    { --bg: #0c0a09; --fg: #f5f5f4; --muted: #a8a29e; --surface: #1c1917; --border: #2d2926; --on-primary: #0c0a09; --hero-overlay: rgba(0,0,0,0.65); --hero-fg: #ffffff; }

[data-palette="slate"]   { --primary: #44403c; --primary-hover: #292524; --accent: #78716c; }
[data-palette="indigo"]  { --primary: #3730a3; --primary-hover: #312e81; --accent: #6366f1; }
[data-palette="emerald"] { --primary: #166534; --primary-hover: #14532d; --accent: #22c55e; }
[data-palette="rose"]    { --primary: #9f1239; --primary-hover: #881337; --accent: #f43f5e; }
[data-palette="amber"]   { --primary: #92400e; --primary-hover: #78350f; --accent: #d97706; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); font-family: var(--font-sans); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }

/* HEADER */
.hdr { position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.hdr-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-3) 0; max-width: var(--container-wide); }
.brand { display: flex; align-items: center; gap: var(--space-2); color: var(--fg); font-family: var(--font-serif); font-weight: 700; text-decoration: none; }
.brand img { width: auto; height: 28px; }
.hdr-nav { display: flex; gap: var(--space-5); }
.hdr-nav a { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.hdr-nav a:hover { color: var(--fg); }
@media (max-width: 720px) { .hdr-nav { display: none; } }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: 10px 18px; border-radius: var(--radius); font-weight: 600; transition: var(--transition); border: 1px solid transparent; text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 0.9rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; letter-spacing: 0.02em; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--primary-hover); text-decoration: none; }

/* HERO */
.hero { position: relative; min-height: var(--hero-pad); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-inner { position: relative; z-index: 1; padding: var(--space-9) var(--space-5); }
.hero-name { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1; margin: 0 0 var(--space-4); letter-spacing: -0.02em; color: var(--hero-fg); }
.hero-tagline { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--hero-fg); opacity: 0.9; margin: 0 0 var(--space-6); max-width: 48ch; margin-left: auto; margin-right: auto; }
.hero:not(:has(.hero-bg)) .hero-name { color: var(--fg); }
.hero:not(:has(.hero-bg)) .hero-tagline { color: var(--muted); }

/* SECTION HEADINGS */
.section-heading { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 0 0 var(--space-6); text-align: center; letter-spacing: -0.01em; }

/* MENU */
.menu { padding: var(--section-pad) 0; }
.menu-note { text-align: center; color: var(--muted); font-size: 0.9rem; font-style: italic; margin: calc(var(--space-6) * -1 + var(--space-3)) 0 var(--space-7); }
.menu-categories { display: flex; flex-direction: column; gap: var(--space-8); }
.menu-category-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; margin: 0 0 var(--space-2); text-align: center; color: var(--primary); }
.menu-category-desc { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 0 0 var(--space-5); }
.menu-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-4); max-width: 680px; margin-left: auto; margin-right: auto; }
.menu-item { padding: var(--space-3) 0; border-bottom: 1px dotted var(--border); }
.menu-item:last-child { border-bottom: 0; }
.menu-item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.menu-item-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; margin: 0; flex: 1; min-width: 0; }
.menu-item-dietary { color: var(--accent); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 1px 6px; border: 1px solid var(--accent); border-radius: 999px; white-space: nowrap; }
.menu-item-price { font-weight: 700; color: var(--primary); white-space: nowrap; margin-left: auto; }
.menu-item-desc { color: var(--muted); font-size: 0.92rem; margin: var(--space-1) 0 0; max-width: 56ch; }

/* ABOUT */
.about { padding: var(--section-pad) 0; background: var(--surface); }
.about-inner { display: grid; grid-template-columns: 1fr; gap: var(--space-7); align-items: center; }
.about-text .section-heading { text-align: left; }
.about-body { font-size: 1.05rem; color: var(--fg); max-width: 60ch; line-height: 1.7; }
.about-body p { margin: 0 0 var(--space-4); }
.about-body strong { font-weight: 700; }
.about-image img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 768px) {
  .about-inner { grid-template-columns: 1fr 1fr; }
}

/* GALLERY */
.gallery { padding: var(--section-pad) 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); list-style: none; padding: 0; margin: 0; }
.gallery-cell img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.gallery-caption { color: var(--muted); font-size: 0.85rem; margin: var(--space-2) 0 0; text-align: center; }

/* TESTIMONIALS */
.testimonials { padding: var(--section-pad) 0; background: var(--surface); }
.testimonials-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.testimonial-card { padding: var(--space-5); background: var(--bg); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.testimonial-card blockquote { margin: 0; }
.testimonial-card p { font-family: var(--font-serif); font-size: 1.05rem; font-style: italic; line-height: 1.6; margin: 0 0 var(--space-4); }
.testimonial-card cite { color: var(--muted); font-style: normal; font-weight: 600; font-size: 0.88rem; }
.testimonial-source { font-weight: 400; }

/* HOURS */
.hours { padding: var(--section-pad) 0; }
.hours-list { max-width: 420px; margin: 0 auto; padding: 0; }
.hours-row { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.hours-row:last-child { border-bottom: 0; }
.hours-row dt { font-family: var(--font-serif); font-weight: 700; }
.hours-row dd { margin: 0; color: var(--muted); }

/* LOCATION */
.location { padding: var(--section-pad) 0; background: var(--surface); }
.location-inner { max-width: 600px; text-align: center; }
.location-address { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 var(--space-4); }
.location-body { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.location-body p { margin: 0 0 var(--space-3); }

/* CTA */
.cta { padding: var(--section-pad) 0; background: var(--primary); color: var(--on-primary); text-align: center; }
.cta-inner { max-width: 600px; }
.cta-heading { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 var(--space-3); letter-spacing: -0.02em; }
.cta-body { font-size: 1.05rem; opacity: 0.9; margin: 0 0 var(--space-5); }
.cta .btn-primary { background: var(--bg); color: var(--fg); }
.cta .btn-primary:hover { background: var(--surface); }

/* FOOTER + WATERMARK */
.ddv-footer { padding: var(--space-6) 0; border-top: 1px solid var(--border); margin-top: 0; text-align: center; color: var(--muted); }
.ddv-footer-inner small { font-size: 0.85rem; }
.ddv-watermark { position: fixed; bottom: 12px; right: 12px; z-index: 50; }
.ddv-watermark a { display: inline-flex; align-items: center; padding: 6px 10px; background: var(--bg); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; font-size: 0.78rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); text-decoration: none; }
.ddv-watermark a:hover { color: var(--fg); }
