:root {
  --brand: #b5401f;        /* warm terracotta */
  --brand-dark: #93321a;
  --leaf: #1f6f78;         /* coastal ocean teal */
  --ink: #2b2420;
  --muted: #6e625a;
  --paper: #fbf6ee;
  --paper-2: #f4ecdf;
  --line: #e6d9c6;
  --note: #fbe7a1;
  --radius: 10px;
  --shadow: 0 2px 4px rgba(60, 35, 15, .06), 0 10px 24px rgba(60, 35, 15, .08);
  --hand: "Caveat", "Segoe Print", cursive;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.02rem;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.scribble { font-family: var(--hand); font-size: 1.6rem; color: var(--brand); line-height: 1.1; }
.scribble--muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600; text-decoration: none;
  padding: 13px 26px; border-radius: 8px; transition: background .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 3px 0 var(--brand-dark); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--small { padding: 8px 14px; font-size: .9rem; background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn--small:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.link-underline { font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 238, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { font-family: var(--hand); font-weight: 700; font-size: 2rem; color: var(--brand); margin-right: auto; text-decoration: none; }
.nav { display: flex; gap: 26px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--brand); }
.cart-btn { border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.cart-btn__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; background: var(--note); color: var(--ink); border-radius: 999px; font-size: .8rem; margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* Photos & placeholders */
.photo { position: relative; overflow: hidden; background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.no-photo {
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(181, 64, 31, .05) 12px 24px),
    var(--paper-2);
}
.photo.no-photo[data-label]::after {
  content: "add photo: " attr(data-label);
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  font-size: .72rem; color: var(--muted); background: rgba(255,255,255,.8);
  padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}
.photo__fallback { display: none; }
.photo.no-photo .photo__fallback {
  display: grid; place-items: center; position: absolute; inset: 0; padding: 20px; text-align: center;
  font-family: var(--hand); font-size: 1.9rem; color: var(--brand); line-height: 1.1;
}

/* Polaroids */
.polaroid { background: #fff; padding: 12px 12px 0; box-shadow: var(--shadow); position: relative; transform: rotate(var(--tilt, 0deg)); }
.polaroid .photo { aspect-ratio: 4 / 3; }
.polaroid figcaption { font-family: var(--hand); font-size: 1.5rem; text-align: center; padding: 8px 4px 12px; color: var(--ink); }
.tape {
  position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(240, 225, 180, .75); box-shadow: 0 1px 2px rgba(0,0,0,.08); z-index: 2;
}

/* Hero */
.hero { padding: 64px 0 88px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 10px 0 20px; }
.hero__intro { font-size: 1.12rem; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero__meta { margin-top: 28px; font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; max-width: 520px; }
.polaroid--hero { --tilt: 2deg; max-width: 480px; justify-self: center; width: 100%; }

/* Sections */
.section { padding: 84px 0; }
.section--paper { background: var(--paper-2); }
.section--dark { background: #2b2420; color: #f4ecdf; }
.section__head { max-width: 640px; margin-bottom: 36px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 8px; }
.section__head p { color: var(--muted); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { border: 1.5px solid var(--line); background: transparent; padding: 7px 16px; border-radius: 999px; font: inherit; font-weight: 500; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.photo--card { aspect-ratio: 4 / 3; }
.card:hover .photo img { transform: scale(1.03); }
.photo--card img { transition: transform .4s ease; }
.sticky-note {
  position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--note); padding: 4px 12px 6px;
  font-family: var(--hand); font-size: 1.25rem; transform: rotate(3deg); box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card__top h3 { font-size: 1.18rem; }
.price { font-family: var(--serif); color: var(--brand); font-weight: 700; white-space: nowrap; }
.card__body p { color: var(--muted); font-size: .93rem; flex: 1; }
.card__body .btn { align-self: flex-start; margin-top: 6px; }

/* Coming soon */
.coming-soon {
  margin: 44px auto 0; max-width: 620px; text-align: center; padding: 26px 24px;
  border: 2px dashed var(--line); border-radius: var(--radius); background: #fff;
}
.coming-soon__tag {
  display: inline-block; background: var(--note); padding: 2px 14px 4px; transform: rotate(-2deg);
  font-family: var(--hand); font-size: 1.3rem; box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.coming-soon__text { font-family: var(--hand); font-size: 2rem; color: var(--brand); line-height: 1.2; margin: 12px 0 6px; }
.coming-soon__sub { color: var(--muted); font-size: .92rem; }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.story--solo { grid-template-columns: 1fr; max-width: 720px; }
.polaroid--cook { --tilt: -2.5deg; max-width: 380px; justify-self: center; width: 100%; }
.polaroid--cook .photo { aspect-ratio: 4 / 5; }
.arrow { display: inline-block; transform: rotate(-20deg); }
.story__text h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 16px; }
.story__text p { margin-bottom: 14px; color: #4a403a; }
.signature { font-family: var(--hand); font-size: 2.2rem; color: var(--brand); margin-top: 6px; }
.gallery__title { font-family: var(--hand); font-weight: 700; font-size: 2rem; color: var(--ink); margin: 72px 0 24px; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.polaroid--small figcaption { font-size: 1.25rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.review { background: #fff; padding: 26px 24px; box-shadow: var(--shadow); transform: rotate(var(--tilt)); border-left: 3px solid var(--leaf); }
.review p { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.review cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--hand); font-size: 1.4rem; color: var(--leaf); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.contact__lead { margin: 10px 0 24px; opacity: .85; }
.contact__list { display: grid; gap: 14px; }
.contact__list div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 12px; }
.contact__list dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; padding-top: 3px; }
.social { display: flex; gap: 20px; margin-top: 26px; }
.social a { text-decoration: underline; text-underline-offset: 4px; }
.note-card { background: var(--note); color: var(--ink); padding: 32px; transform: rotate(1.5deg); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.note-card__hand { font-family: var(--hand); font-size: 2.6rem; font-weight: 700; line-height: 1; margin-bottom: 10px; color: var(--brand); }
.note-card p { margin-bottom: 18px; }

.footer { background: #211b18; color: #a39587; text-align: center; padding: 22px 0; font-size: .88rem; }

/* Order drawer */
.overlay { position: fixed; inset: 0; background: rgba(30, 20, 15, .45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.overlay.open { opacity: 1; pointer-events: auto; }
.cart { position: fixed; top: 0; right: 0; height: 100%; height: 100dvh; width: min(410px, 100%); background: var(--paper); z-index: 100; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform .3s ease; box-shadow: -10px 0 30px rgba(0,0,0,.12); }
.cart.open { transform: none; }
.cart__head { position: sticky; top: 0; z-index: 2; background: var(--paper); display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart__head h3 { font-size: 1.4rem; }
.icon-btn { border: 0; background: var(--paper-2); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.cart__items { flex: 1 0 auto; padding: 8px 20px; }
.empty { text-align: center; color: var(--muted); padding: 56px 12px; }
.empty .scribble { margin-bottom: 8px; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.photo--thumb { width: 52px; height: 52px; border-radius: 8px; flex-shrink: 0; }
.photo--thumb.no-photo .photo__fallback { font-size: 1.6rem; padding: 0; }
.line__info { flex: 1; display: flex; flex-direction: column; font-size: .92rem; line-height: 1.35; }
.line__info span { color: var(--muted); font-size: .85rem; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; }
.cart__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: #fff; }
.row { display: flex; justify-content: space-between; margin-bottom: 4px; color: var(--muted); }
.row--total { color: var(--ink); font-weight: 700; font-size: 1.1rem; margin: 10px 0 14px; }
.delivery-opts { border: 0; margin-bottom: 12px; display: grid; gap: 6px; }
.delivery-opts legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.delivery-opt {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1.5px solid var(--line);
  border-radius: 8px; cursor: pointer; font-size: .9rem; background: var(--paper);
}
.delivery-opt span { flex: 1; }
.delivery-opt strong { white-space: nowrap; font-size: .85rem; }
.delivery-opt:has(input:checked) { border-color: var(--brand); background: #fff; }
.delivery-opt input { accent-color: var(--brand); }
.pay__wait { background: #fff; border-radius: 6px; padding: 8px 10px; margin-top: 4px; line-height: 1.45; }
.pay { background: #eef7ee; border: 1.5px dashed #3c9a3c; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: .9rem; }
.pay__title { font-weight: 700; color: #1f6b1f; margin-bottom: 6px; }
.pay__number { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pay__number strong { font-size: 1.35rem; letter-spacing: .04em; }
.pay__copy { border: 1px solid #3c9a3c; background: #fff; color: #1f6b1f; border-radius: 6px; padding: 4px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.pay__name { color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.pay__steps { padding-left: 18px; color: var(--ink); line-height: 1.5; }
.checkout { display: grid; gap: 10px; }
.checkout input, .checkout textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--paper); }
.checkout input:focus, .checkout textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.checkout__hint { font-size: .8rem; color: var(--muted); text-align: center; line-height: 1.4; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 8px; z-index: 200; transition: transform .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* Highlight a menu item the chat points to */
.card.flash { box-shadow: 0 0 0 3px var(--brand), var(--shadow); transition: box-shadow .3s; }

/* ===== 24/7 chat assistant ===== */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer;
  background: var(--leaf); color: #fff; font: 600 1rem "Inter", system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(0,0,0,.2); transition: transform .12s;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab[hidden], .chat-box[hidden] { display: none; }

.chat-box {
  position: fixed; right: 20px; bottom: 20px; z-index: 85;
  width: 370px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 100px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); color: var(--ink);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.25); font-family: "Inter", system-ui, sans-serif;
}
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--leaf); color: #fff; }
.chat-head strong { font-family: var(--hand); font-size: 1.6rem; line-height: 1; display: block; }
.chat-head small { opacity: .9; font-size: .8rem; }
.chat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7ee2a0; margin-right: 4px; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 88%; padding: 9px 13px; font-size: .94rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat-msg ul, .chat-msg ol { margin: 6px 0; padding-left: 20px; }
.chat-msg small { color: var(--muted); }
.chat-bot { align-self: flex-start; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-radius: 4px 14px 14px 14px; }
.chat-user { align-self: flex-end; background: var(--brand); color: #fff; border-radius: 14px 4px 14px 14px; }

.chat-link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; text-align: left; }
.chat-wa { display: inline-block; margin-top: 6px; color: #12793f; font-weight: 700; }
.chat-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.chat-btn { border: 0; border-radius: 8px; padding: 7px 12px; background: var(--brand); color: #fff; font: 600 .85rem "Inter", system-ui, sans-serif; cursor: pointer; }
.chat-btn-ghost { background: var(--paper-2); color: var(--ink); }

.chat-typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: chatblink 1s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatblink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px dashed var(--line); scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button {
  flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 5px 12px; font: 500 .84rem "Inter", system-ui, sans-serif; cursor: pointer;
}
.chat-quick button:hover { border-color: var(--leaf); color: var(--leaf); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 14px; }
.chat-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; font: 1rem "Inter", system-ui, sans-serif; background: #fff; color: var(--ink); }
.chat-form input:focus { outline: 2px solid var(--leaf); border-color: transparent; }
.chat-form button { border: 0; border-radius: 50%; width: 44px; height: 44px; flex: none; background: var(--leaf); color: #fff; font-size: 1rem; cursor: pointer; }

/* Phones (Android & iPhone): the chat opens full-screen.
   chatbot.js resizes it to the visible area so the keyboard never covers the typing box. */
@media (max-width: 640px) {
  .chat-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 10px 16px; -webkit-tap-highlight-color: transparent; }
  .chat-fab__q { display: none; }
  .chat-box {
    top: 0; left: 0; right: 0; bottom: auto;
    width: 100%; max-width: none;
    height: 100%; height: 100dvh; max-height: none;
    border-radius: 0; box-shadow: none;
  }
  .chat-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .chat-form { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .chat-close { font-size: 1.5rem; padding: 6px 10px; }
  .chat-log { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .chat-msg { max-width: 92%; }
}
body.chat-open-phone { overflow: hidden; }

/* Responsive */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .hero { padding: 36px 0 60px; }
  .hero__inner, .story, .contact { grid-template-columns: 1fr; gap: 44px; }
  .section { padding: 60px 0; }
  .contact__list div { grid-template-columns: 1fr; gap: 2px; }
  .cart-btn { font-size: .9rem; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .polaroid { padding: 8px 8px 0; }
  .polaroid--small figcaption { font-size: 1.05rem; }
  .logo { font-size: 1.6rem; }
}
