/* =========================================================
   Restaurant Template — style.css
   ---------------------------------------------------------
   1. BRAND SETTINGS  ← edit colours & fonts here
   2. Base
   3. Layout & components
   4. Sections
   5. Animations
   6. Responsive
   ========================================================= */

/* ---------- 1. BRAND SETTINGS ---------- */
:root {
  --bg:        #14110f;   /* page background */
  --bg-alt:    #1c1815;   /* alternate section background */
  --surface:   #241f1b;   /* cards, form */
  --text:      #f4ede3;   /* main text */
  --muted:     #b6aa9a;   /* secondary text */
  --accent:    #c8643b;   /* buttons, highlights */
  --accent-2:  #d4a85a;   /* small details, eyebrow text */
  --line:      rgba(244, 237, 227, .12);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Optional colour presets — set <body data-theme="sage"> or "noir" */
[data-theme="sage"] { --bg:#121714; --bg-alt:#18201b; --surface:#1f2923; --accent:#8fb996; --accent-2:#e3c285; --muted:#a9b5aa; }
[data-theme="noir"] { --bg:#0e0e10; --bg-alt:#151518; --surface:#1d1d21; --accent:#d4a85a; --accent-2:#e07a5f; --muted:#a7a3a0; }
[data-theme="light"] { --bg:#faf6f0; --bg-alt:#f1eadf; --surface:#ffffff; --text:#1f1a16; --muted:#6c6156; --accent:#b5523b; --accent-2:#9a6b1f; --line:rgba(31,26,22,.12); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .4s, color .4s; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--surface); padding: .1em .4em; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.center { text-align: center; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- 3. Components ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px var(--accent); }
.btn--primary:hover { box-shadow: 0 16px 34px -12px var(--accent); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn--block { width: 100%; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; font-weight: 600; color: var(--accent-2); margin-bottom: 1rem; }

/* Demo bar */
.demo-bar { position: relative; z-index: 110; display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; padding: .5rem 3rem .5rem 1rem; background: var(--accent-2); color: #1a1410; font-size: .82rem; text-align: center; }
.demo-bar__close { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.3rem; line-height: 1; color: inherit; }
.theme-switch { display: inline-flex; gap: .35rem; align-items: center; }
.theme-switch button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(0,0,0,.35); padding: 0; }
.theme-switch button[aria-pressed="true"] { outline: 2px solid #1a1410; outline-offset: 2px; }
body[data-demo="false"] .demo-bar { display: none; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; height: var(--header-h); transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.header.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.brand__mark { width: 34px; height: 34px; color: var(--accent-2); }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; display: flex; align-items: baseline; gap: .4rem; }
.brand__sub { font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav__link { position: relative; text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--muted); transition: color .2s; padding: .3rem 0; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }
.nav__cta { padding: .65rem 1.2rem; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 4. Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__title { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.section__lead { color: var(--muted); }

/* Hero */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, transparent 85%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero__content { padding: 4rem 0 6rem; }
.hero__title { font-size: clamp(2.8rem, 8vw, 6.2rem); font-weight: 600; max-width: 12ch; }
.hero__title em { font-style: italic; color: var(--accent-2); font-weight: 400; }
.hero__lead { max-width: 46ch; font-size: 1.1rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.5rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 2.5rem; list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.hero__meta span { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
.hero__scroll { position: absolute; left: 50%; bottom: 1.8rem; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 20px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent-2); animation: scrollDot 1.8s infinite; }

/* Highlights */
.highlights { background: var(--bg-alt); border-block: 1px solid var(--line); padding: 3rem 0; }
.highlights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.highlight svg { width: 34px; height: 34px; fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .8rem; }
.highlight h3 { font-size: 1.25rem; }
.highlight p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Menu */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; }
.tab { border: 1px solid var(--line); background: transparent; padding: .55rem 1.2rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); transition: all .25s; }
.tab:hover { color: var(--text); border-color: var(--muted); }
.tab.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.menu__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 3.5rem; }
.dish { padding: 1.2rem 0; border-bottom: 1px dashed var(--line); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.dish.is-hidden { display: none; }
.dish.is-entering { opacity: 0; transform: translateY(10px); }
.dish__head { display: flex; align-items: baseline; gap: .8rem; }
.dish__head h3 { font-size: 1.2rem; margin: 0; }
.dish__dots { flex: 1; border-bottom: 1px dotted var(--muted); opacity: .4; transform: translateY(-4px); }
.dish__price { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent-2); white-space: nowrap; }
.dish p { color: var(--muted); margin: .35rem 0 .5rem; font-size: .95rem; }
.tags { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: .68rem; font-weight: 600; letter-spacing: .06em; padding: .15rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.tags .tag--hot { border-color: var(--accent); color: var(--accent); }
.menu__note { text-align: center; color: var(--muted); font-size: .85rem; margin: 2.5rem 0 1.5rem; }

/* About */
.about { background: var(--bg-alt); }
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__media { position: relative; padding-bottom: 12%; }
.about__media img { border-radius: var(--radius); width: 88%; aspect-ratio: 4/3; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.about__media .about__media--small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4/5; border: 6px solid var(--bg-alt); }
.about__text > p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; padding: 1.5rem 0; border-block: 1px solid var(--line); }
.stats dt { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent-2); line-height: 1; }
.stats dt::after { content: "+"; font-size: .6em; vertical-align: super; }
.stats dd { margin: .4rem 0 0; font-size: .82rem; color: var(--muted); }
.signature { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }

/* Gallery */
.gallery__grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery__item { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.gallery__item::after { content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 1rem; text-align: left; font-size: .9rem; font-weight: 500; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; opacity: 0; transform: translateY(8px); transition: all .35s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; transform: none; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(8,6,5,.92); padding: 4rem 1rem; opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { text-align: center; color: #ddd; margin-top: 1rem; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__info > p { color: var(--muted); }
.info { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.2rem; }
.info li { display: flex; gap: 1rem; align-items: flex-start; }
.info svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--surface); fill: none; stroke: var(--accent-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info strong { display: block; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 2rem; font-size: .95rem; }
.hours caption { text-align: left; font-family: var(--font-display); font-size: 1.25rem; margin-bottom: .6rem; }
.hours th, .hours td { padding: .6rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
.map { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 2/1; display: grid; place-items: center; color: var(--muted); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map span { position: relative; font-size: .82rem; background: var(--bg); padding: .35rem .8rem; border-radius: 999px; margin-top: 5rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.form { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.form h3 { font-size: 1.7rem; margin: 0; }
.form__badge { justify-self: start; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--accent-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea, .newsletter input { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .95rem; transition: border-color .2s, box-shadow .2s; color-scheme: dark; }
[data-theme="light"] .form input, [data-theme="light"] .form select, [data-theme="light"] .form textarea, [data-theme="light"] .newsletter input { color-scheme: light; }
.form input:focus, .form select:focus, .form textarea:focus, .newsletter input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form .is-invalid { border-color: #e5484d; }
.form__status { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form__status.is-ok { color: #8fd19e; }
.form__status.is-error { color: #ff8a8a; }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 4rem 0 2rem; font-size: .92rem; }
.footer__inner { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 2.5rem; align-items: start; }
.brand--footer .brand__name { font-size: 1.6rem; }
.newsletter label { display: block; font-weight: 600; margin-bottom: .6rem; }
.newsletter__row { display: flex; gap: .5rem; }
.newsletter .form__status { margin-top: .5rem; }
.social { display: flex; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: all .25s; }
.social a:hover { border-color: var(--accent); background: var(--accent); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer__bottom p { margin: 0; }
.to-top { text-decoration: none; }
.to-top:hover { color: var(--accent-2); }

/* Toast */
.toast { visibility: hidden; opacity: 0; position: fixed; left: 50%; bottom: 1.5rem; z-index: 400; transform: translate(-50%, 150%); background: var(--text); color: var(--bg); padding: .85rem 1.3rem; border-radius: 14px; font-size: .9rem; font-weight: 500; box-shadow: 0 20px 40px -15px rgba(0,0,0,.5); transition: transform .45s var(--ease), opacity .3s, visibility .3s; max-width: calc(100% - 2rem); text-align: center; }
.toast.is-visible { visibility: visible; opacity: 1; transform: translate(-50%, 0); }

/* ---------- 5. Animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}

/* ---------- 6. Responsive ---------- */
@media (max-width: 980px) {
  .burger { display: block; z-index: 102; }
  .nav { position: fixed; inset: 0; z-index: 101; flex-direction: column; justify-content: center; gap: 2.5rem; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 1.4rem; }
  .nav__link { font-family: var(--font-display); font-size: 2rem; color: var(--text); }
  .nav.is-open .nav__list li { animation: navIn .5s var(--ease) both; }
  .nav.is-open .nav__list li:nth-child(2) { animation-delay: .05s; } .nav.is-open .nav__list li:nth-child(3) { animation-delay: .1s; }
  .nav.is-open .nav__list li:nth-child(4) { animation-delay: .15s; } .nav.is-open .nav__list li:nth-child(5) { animation-delay: .2s; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  body.menu-open { overflow: hidden; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .highlights__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .menu__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__media::after { background: linear-gradient(0deg, var(--bg) 15%, color-mix(in srgb, var(--bg) 65%, transparent) 70%, color-mix(in srgb, var(--bg) 40%, transparent)); }
  .hero__content { padding-bottom: 5rem; }
  .gallery__grid { grid-auto-rows: 150px; gap: .6rem; }
  .gallery__item--wide { grid-column: span 2; }
  .newsletter__row { flex-direction: column; }
  .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
  .theme-switch > span { display: none; }
  .hero__media img { object-position: 70% center; }
}
