/* Osteria Luce — chrome (nav, footer, tweaks) */

/* NAV */
.lc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 400ms var(--ease), backdrop-filter 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.lc-nav.is-scrolled {
  background: color-mix(in oklab, var(--bone) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.lc-nav.is-dark {
  color: var(--bone);
}
.lc-nav.is-dark.is-scrolled {
  color: var(--ink);
}
.lc-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px var(--pad-x);
}
.lc-brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  justify-self: start;
}
.lc-brand-mark {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--terracotta);
  transform: translateY(-2px);
}
.lc-brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.lc-brand-name em {
  font-style: italic;
  color: var(--terracotta);
}

.lc-nav-links {
  display: inline-flex;
  gap: 36px;
  justify-self: center;
}
.lc-nav-links a {
  position: relative;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 0;
  overflow: hidden;
  display: inline-block;
  height: 1em;
  line-height: 1;
}
.lc-nav-links a .label-txt,
.lc-nav-links a .label-hover {
  display: block;
  transition: transform 400ms var(--ease);
}
.lc-nav-links a .label-hover {
  position: absolute; top: 100%; left: 0;
  color: var(--terracotta);
}
.lc-nav-links a:hover .label-txt { transform: translateY(-100%); }
.lc-nav-links a:hover .label-hover { transform: translateY(-100%); }
.lc-nav-links a.is-current .label-txt { color: var(--terracotta); }

.lc-nav-right {
  display: inline-flex; align-items: center; gap: 20px;
  justify-self: end;
}
.lc-nav-loc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.lc-nav-cta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: all 300ms var(--ease);
}
.lc-nav-cta:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--bone); }

/* FOOTER */
.lc-footer {
  background: var(--ink);
  color: var(--bone);
  margin-top: 120px;
}
html[data-palette="noir"] .lc-footer { background: var(--bone-3); color: var(--ink); }

.lc-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 90px var(--pad-x) 70px;
  border-bottom: 1px solid rgba(243, 237, 227, 0.14);
}
.lc-footer-col .label { color: rgba(243, 237, 227, 0.56); margin-bottom: 18px; }
.lc-footer-mark {
  font-family: var(--serif);
  font-size: 54px;
  color: var(--terracotta);
  line-height: 1;
}
.lc-footer-wordmark {
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
  font-weight: 400;
}
.lc-footer-brand .label { margin-top: 14px; }

.lc-footer-addr { font-size: 17px; line-height: 1.5; margin: 0 0 12px; }
.lc-hours { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 13px; }
.lc-hours li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(243, 237, 227, 0.1); }
.lc-hours li:last-child { border-bottom: 0; }
.lc-contact { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.lc-contact li { padding: 6px 0; }
.lc-contact a { border-bottom: 1px solid transparent; transition: border-color 200ms; }
.lc-contact a:hover { border-bottom-color: currentColor; }

.lc-footer-nl { font-size: 15px; line-height: 1.4; margin: 0 0 14px; opacity: 0.8; }
.lc-nl-form {
  position: relative;
  display: flex;
  border-bottom: 1px solid rgba(243, 237, 227, 0.4);
  padding: 10px 0;
}
.lc-nl-form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: inherit;
  font-family: var(--sans);
  font-size: 14px;
}
.lc-nl-form input::placeholder { color: rgba(243, 237, 227, 0.5); }
.lc-nl-form button {
  background: transparent; border: 0; color: inherit; cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
}
.lc-nl-ok { position: absolute; left: 0; bottom: -22px; opacity: 0; transition: opacity 300ms; color: var(--terracotta); }

.lc-footer-marquee {
  padding: 26px 0;
  font-size: 64px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(243, 237, 227, 0.14);
  color: var(--bone);
}
.lc-footer-marquee span { font-style: italic; }
.lc-footer-marquee .marquee-track span:nth-child(2n) { color: var(--terracotta); }

.lc-footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 12px;
}

/* TWEAKS PANEL */
.tw-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 280px;
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 16px;
  z-index: 200;
  font-family: var(--sans);
  box-shadow: 0 24px 60px -20px rgba(26, 21, 18, 0.4);
}
.tw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tw-close { background: transparent; border: 0; font-size: 22px; cursor: pointer; line-height: 1; color: var(--ink); }
.tw-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tw-row:last-of-type { border-bottom: 0; }
.tw-row .label { margin-bottom: 10px; }
.tw-pals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tw-pal { background: transparent; border: 1px solid var(--line); padding: 8px; cursor: pointer; text-align: left; }
.tw-pal.on { border-color: var(--ink); }
.tw-pal-sw { display: flex; height: 18px; margin-bottom: 6px; }
.tw-pal-sw span { flex: 1; }
.tw-pal span { font-size: 11px; }
.tw-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.tw-pill { border: 1px solid var(--line); background: transparent; padding: 6px 10px; cursor: pointer; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); font-family: var(--sans); }
.tw-pill.on { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.tw-note { margin-top: 10px; opacity: 0.5; }

/* MOBILE MENU (Luce) */
.luce-mm-btn {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
  z-index: 1002;
  color: inherit;
  opacity: 0.85;
  transition: opacity 200ms var(--ease), background 200ms var(--ease);
}
.luce-mm-btn:hover { opacity: 1; }
.luce-mm-btn span {
  position: absolute; left: 12px;
  width: 20px; height: 1px;
  background: currentColor;
  transition: transform 280ms var(--ease), top 280ms var(--ease);
}
.luce-mm-btn span:nth-child(1) { top: 18px; }
.luce-mm-btn span:nth-child(2) { top: 25px; }
.luce-mm-btn.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.luce-mm-btn.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.luce-mm {
  position: fixed; inset: 0;
  z-index: 1001;
  pointer-events: none;
  visibility: hidden;
}
.luce-mm.is-open { visibility: visible; pointer-events: auto; }
.luce-mm-backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 21, 18, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 280ms var(--ease);
}
.luce-mm.is-open .luce-mm-backdrop { opacity: 1; }
.luce-mm-panel {
  position: absolute; top: 0; right: 0;
  width: min(440px, 94vw); height: 100dvh;
  background: var(--bone, #F3EDE3);
  color: var(--ink, #1A1512);
  display: flex; flex-direction: column;
  padding: 22px 28px 32px;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.6, 0, 0.2, 1);
  overflow-y: auto;
  border-left: 1px solid var(--line, rgba(26,21,18,0.1));
}
.luce-mm.is-open .luce-mm-panel { transform: translateX(0); }
.luce-mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line, rgba(26,21,18,0.12));
  margin-bottom: 24px;
}
.luce-mm-brand {
  font-family: var(--font-serif, serif);
  font-size: 22px;
  letter-spacing: 0.005em;
}
.luce-mm-brand em { font-style: italic; color: var(--accent, #B04A2E); font-weight: 400; }
.luce-mm-close {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line, rgba(26,21,18,0.2));
  border-radius: 999px;
  font-size: 22px; line-height: 1;
  cursor: pointer; color: inherit;
  transition: background 200ms var(--ease);
}
.luce-mm-close:hover { background: rgba(26,21,18,0.06); }
.luce-mm-nav { display: flex; flex-direction: column; flex: 1; }
.luce-mm-link {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0;
  font-family: var(--font-serif, serif);
  font-size: 28px; font-weight: 400;
  color: var(--ink, #1A1512);
  text-decoration: none;
  border-bottom: 1px solid rgba(26,21,18,0.08);
  opacity: 0; transform: translateY(8px);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease), color 200ms var(--ease);
}
.luce-mm.is-open .luce-mm-link { opacity: 1; transform: translateY(0); }
.luce-mm-link:hover, .luce-mm-link.is-current { color: var(--accent, #B04A2E); font-style: italic; }
.luce-mm-num {
  font-family: var(--font-mono, monospace);
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--accent, #B04A2E); opacity: 0.7;
  min-width: 28px;
}
.luce-mm-foot {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(26,21,18,0.1);
}
.luce-mm-foot .label {
  font-family: var(--font-mono, monospace);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.6;
}
.luce-mm-cta {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: var(--ink, #1A1512);
  color: var(--bone, #F3EDE3);
  font-family: var(--font-mono, monospace);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  transition: background 200ms var(--ease);
}
.luce-mm-cta:hover { background: var(--accent, #B04A2E); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .lc-nav-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .lc-nav-links { display: none; }
  .lc-nav-right .lc-nav-loc { display: none; }
  .lc-nav-right .lc-nav-cta { display: none; }
  .luce-mm-btn { display: inline-flex; }
  .lc-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; padding: 60px var(--pad-x); }
  .lc-footer-marquee { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .luce-mm-panel, .luce-mm-backdrop, .luce-mm-link { transition-duration: 0.01ms !important; }
}

/* ======= MOBILE: 768px ======= */
@media (max-width: 768px) {
  .lc-nav-inner { padding: 16px 20px; }
  .lc-brand-name { font-size: 18px; }

  /* Footer */
  .lc-footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 20px 40px;
  }
  .lc-footer-marquee { font-size: 28px; padding: 18px 0; }
  .lc-footer-bottom {
    padding: 18px 20px;
    flex-direction: column;
    gap: 8px;
    font-size: 10px;
  }
  .tw-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-width: 320px;
  }
}

/* ======= MOBILE: 480px ======= */
@media (max-width: 480px) {
  .lc-nav-inner { padding: 14px 16px; }
  .lc-footer-top { padding: 40px 16px 32px; }
  .lc-footer-mark { font-size: 40px; }
  .lc-footer-wordmark { font-size: 28px; }
}
