/* Linden Lane Café — demo theme (forest green + mustard) */
@font-face {
  font-family: "Bricolage"; font-style: normal; font-display: swap;
  font-weight: 200 800; font-stretch: 75% 100%;
  src: url("../fonts/bricolage.woff2") format("woff2-variations"), url("../fonts/bricolage.woff2") format("woff2");
}
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("../fonts/dmsans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("../fonts/dmsans-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("../fonts/dmsans-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --green: #1d3b2f;
  --green-2: #264c3d;
  --green-deep: #13281f;
  --mustard: #f0b429;
  --mustard-2: #f7c94f;
  --paper: #f4f5ef;
  --card: #ffffff;
  --ink: #18211c;
  --muted: #56645b;
  --line: #dde2d6;
  --red: #c2410c;
  --display: "Bricolage", "Arial Narrow", Arial, sans-serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-mustard { background: var(--mustard); color: var(--green-deep); }
.btn-mustard:hover { background: var(--mustard-2); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); }
.btn-ghost-dark { color: var(--green); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--green); }
.btn-block { width: 100%; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(244, 245, 239, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 34px; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.top-nav a:hover { color: var(--green); background: #e8ebe1; }
.basket-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px 8px 14px;
  border-radius: 999px; border: 0; background: var(--green); color: #fff; cursor: pointer; font-weight: 700;
}
.basket-btn svg { width: 20px; height: 20px; }
.basket-count { min-width: 26px; height: 26px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; background: var(--mustard); color: var(--green-deep); font-size: .85rem; font-variant-numeric: tabular-nums; }
.basket-btn.bump .basket-count { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }
@media (max-width: 520px) { .top-nav { display: none; } .basket-btn { margin-left: auto; } }

/* Hero */
.hero { background: var(--green); color: #fff; padding-block: clamp(40px, 7vw, 88px); position: relative; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(240,180,41,.22), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.status { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 500; font-size: .95rem; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa59e; }
.status.open .dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.status.closed .dot { background: #fb923c; }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.4rem); font-weight: 800; font-stretch: 88%; }
.hero h1 em { font-style: normal; color: var(--mustard); }
.lede { font-size: 1.15rem; color: #d3ddd7; max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.today { position: relative; background: var(--green-deep); border-radius: 22px; padding: 26px; display: grid; gap: 14px; overflow: hidden; }
.today h2 { font-size: 1.25rem; color: var(--mustard); }
.today dl { margin: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.today dl div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,.15); }
.today dt { color: #a9b8af; }
.today dd { margin: 0; font-weight: 700; text-align: right; }
.today-art { position: absolute; right: 18px; bottom: -18px; width: 120px; height: 110px; opacity: .14; }
.cup { position: absolute; bottom: 0; left: 10px; width: 80px; height: 64px; border-radius: 0 0 30px 30px; background: var(--mustard); }
.cup::after { content: ""; position: absolute; right: -22px; top: 12px; width: 26px; height: 28px; border: 8px solid var(--mustard); border-left: 0; border-radius: 0 20px 20px 0; }
.steam { position: absolute; bottom: 72px; width: 8px; height: 30px; border-radius: 8px; background: var(--mustard); animation: steam 3s ease-in-out infinite; }
.s1 { left: 26px; } .s2 { left: 46px; animation-delay: .5s; } .s3 { left: 66px; animation-delay: 1s; }
@keyframes steam { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-8px); opacity: 1; } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Menu */
.menu { padding-block: clamp(48px, 7vw, 88px); }
.menu-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.menu-head h2 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); color: var(--green); }
.allergen-link { background: none; border: 0; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px 0; }
.menu-controls { position: sticky; top: 64px; z-index: 20; background: var(--paper); padding-block: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.tabs button:hover { border-color: var(--green); }
.tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.diet { display: flex; gap: 6px; flex-wrap: wrap; }
.diet-chip { position: relative; cursor: pointer; }
.diet-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.diet-chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1.5px dashed #b9c2b2; color: var(--muted); font-weight: 500; font-size: .92rem; transition: all .15s ease; }
.diet-chip input:checked + span { border-style: solid; border-color: var(--mustard); background: #fdf3d6; color: var(--green-deep); font-weight: 700; }
.diet-chip input:checked + span::before { content: "✓"; margin-right: 6px; }
.diet-chip input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }

.items { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 8px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); animation: fadeUp .3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.item-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; font-stretch: 92%; color: var(--green-deep); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pop { font-family: var(--body); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--mustard); color: var(--green-deep); padding: 3px 8px; border-radius: 999px; }
.item-price { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.1rem; color: var(--green); }
.item-desc { grid-column: 1; color: var(--muted); font-size: .97rem; }
.item-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.tag { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #e3ecd9; color: #2f5a2a; }
.tag.gf { background: #f3e8d2; color: #7a5313; }
.allergens { font-size: .8rem; color: var(--muted); }
.add { grid-column: 2; grid-row: 2 / span 2; align-self: end; justify-self: end; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--green); background: transparent; color: var(--green); font-weight: 700; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.add:hover { background: var(--green); color: #fff; }
.add.added { background: var(--green); color: #fff; }
.no-items { padding: 32px 0; color: var(--muted); }
.menu-foot { margin-top: 24px; font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) { .items { grid-template-columns: 1fr; } .menu-controls { top: 64px; } }

/* Strip */
.strip { background: var(--mustard); color: var(--green-deep); padding-block: 28px; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.strip-grid div { display: grid; gap: 2px; }
.strip-grid b { font-family: var(--display); font-size: 1.2rem; }
.strip-grid span { font-size: .95rem; }
@media (max-width: 700px) { .strip-grid { grid-template-columns: 1fr; } }

/* Visit */
.visit { padding-block: clamp(48px, 7vw, 88px); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.visit h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--green); margin-bottom: 14px; }
.visit-addr { font-weight: 700; font-size: 1.1rem; }
.visit-note { color: var(--muted); margin: 6px 0 20px; }
.hours { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.hours th, .hours td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 500; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-today { background: #fdf3d6; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--green-deep); }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--green); color: #fff; padding: 2px 8px; border-radius: 999px; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } }

.foot { background: var(--green-deep); color: #a9b8af; padding-block: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--mustard); font-weight: 700; }

/* Floating basket on phones */
.basket-float {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 18px;
  border: 0; border-radius: 16px; background: var(--green); color: #fff; cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(19, 40, 31, .7);
  animation: slideUp .25s ease both;
}
.basket-float span { font-weight: 700; }
.basket-float b { font-weight: 500; color: #c8d4cd; font-size: .9rem; }
.basket-float strong { margin-left: auto; background: var(--mustard); color: var(--green-deep); padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
@keyframes slideUp { from { transform: translateY(120%); } to { transform: none; } }
@media (min-width: 861px) { .basket-float { display: none !important; } }
@media (max-width: 860px) { body.has-items .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(19, 40, 31, .45); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; background: var(--card);
  box-shadow: -20px 0 60px -30px rgba(0,0,0,.5);
  animation: inRight .28s cubic-bezier(.2,.7,.2,1) both;
  padding-top: env(safe-area-inset-top, 0px);
}
@keyframes inRight { from { transform: translateX(100%); } }
@media (max-width: 600px) {
  .drawer { top: auto; left: 0; width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; animation-name: inUp; padding-top: 0; }
  @keyframes inUp { from { transform: translateY(100%); } }
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.5rem; color: var(--green); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; align-content: start; gap: 16px; }
.lines { list-style: none; display: grid; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-name { font-weight: 700; }
.line-price { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--green); }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink); }
.qty button:hover { border-color: var(--green); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 20px 0; }
.checkout { display: grid; gap: 14px; }
.row { display: grid; gap: 6px; }
.row label { font-weight: 700; font-size: .92rem; }
.row label em { font-style: normal; font-weight: 400; color: var(--muted); }
.row input, .row select { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font: inherit; color: var(--ink); }
.row input:focus, .row select:focus { outline: none; border-color: var(--green); }
.row input[aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: .88rem; font-weight: 700; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 2px solid var(--green); }
.total strong { font-family: var(--display); font-size: 1.8rem; font-variant-numeric: tabular-nums; color: var(--green-deep); }
.demo-note { font-size: .84rem; color: var(--muted); text-align: center; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(19, 40, 31, .55); animation: fade .2s ease both; }
.modal-card { width: min(480px, 100%); max-height: 90vh; overflow-y: auto; background: var(--card); border-radius: 22px; padding: 28px; display: grid; gap: 14px; animation: pop .3s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-card h2 { font-size: 1.8rem; color: var(--green); }
.tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--mustard); color: var(--green-deep); }
.tick svg { width: 28px; height: 28px; }
.confirm-lines { list-style: none; display: grid; gap: 6px; padding: 12px 0; border-block: 1px dashed var(--line); font-size: .95rem; }
.confirm-lines li { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.allergen-list { columns: 2; column-gap: 28px; padding-left: 22px; color: var(--muted); }
.allergen-list li { padding: 3px 0; }

.toast { position: fixed; z-index: 110; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--green-deep); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 861px) { .toast { bottom: 28px; } }

section[id], .booker { scroll-margin-top: 72px; }
