/* ====== YOUR COLORS: change these to restyle the whole site ====== */
:root {
  --yellow: #FDF3C9;   /* header + footer */
  --pink: #F5D8E7;     /* page background */
  --cream: #FFFBEA;    /* cards */
  --blue: #D6EBF7;     /* light sky blue */
  --cocoa: #4A2C1F;    /* text + buttons */
  --cocoa-soft: #6E4E40;
  --gold: #C99A2E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--pink); color: var(--cocoa);
  line-height: 1.65; font-size: 17px;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; line-height: 1.2; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--cocoa); color: var(--cream);
  padding: 12px 26px; border-radius: 4px; text-decoration: none; font-weight: 700;
  font-size: 15px; border: 2px solid var(--cocoa); cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s;
}
.btn:hover { background: #2f1b12; }
.btn.light { background: var(--yellow); color: var(--cocoa); border-color: var(--yellow); }
.btn.light:hover { background: #f8e7a4; }
.btn.outline { background: transparent; color: var(--cocoa); }
.btn.outline:hover { background: var(--cocoa); color: var(--cream); }
.btn[disabled] { opacity: .5; cursor: wait; }

/* ---------- Header ---------- */
.site-header { background: var(--yellow); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(74,44,31,.1); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: ". logo right" "nav nav nav"; align-items: center; padding-top: 10px; }
.header-inner .logo { grid-area: logo; justify-self: center; }
.header-inner .header-right { grid-area: right; }
.header-inner .nav-left { grid-area: nav; justify-content: center; padding: 8px 0 12px; }

/* ---------- Gliding "John 10:10" banner ---------- */
.ticker { background: var(--cocoa); color: var(--yellow); overflow: hidden; height: 34px; position: relative; }
.ticker-track {
  display: flex; width: max-content; line-height: 34px; white-space: nowrap;
  font-family: 'Nunito', system-ui, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .03em;
  animation: glide 65s linear infinite;
}
.ticker-track span { padding: 0 32px; }
/* moves left to right; the second half of the strip is a copy, so it loops seamlessly */
@keyframes glide { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.logo img { height: 74px; width: auto; }
.logo .logo-text { font-family: 'Playfair Display', serif; font-style: italic; font-size: 26px; text-decoration: none; }
.logo { text-decoration: none; justify-self: center; }
.nav-left { display: flex; gap: 30px; font-size: 16px; font-weight: 600; }
.nav-left a { text-decoration: none; }
.nav-left a:hover, .nav-left a.active { text-decoration: underline; text-underline-offset: 5px; }
.header-right { justify-self: end; display: flex; align-items: center; gap: 14px; }
.header-right .btn { background: transparent; color: var(--cocoa); padding: 8px 16px; font-weight: 600; }
.header-right .btn:hover { background: var(--cocoa); color: var(--cream); }
.more { position: relative; }
.more-btn { background: none; border: 0; font: inherit; font-size: 15px; color: var(--cocoa); cursor: pointer; padding: 0; }
.more-list { display: none; position: absolute; top: 100%; left: -16px; background: var(--yellow); padding: 10px 16px; min-width: 200px; box-shadow: 0 10px 24px rgba(74,44,31,.12); border-radius: 0 0 6px 6px; flex-direction: column; z-index: 30; }
.more-list a { padding: 6px 0; }
.more:hover .more-list, .more:focus-within .more-list { display: flex; }
.cart-btn { position: relative; background: none; border: 0; cursor: pointer; color: var(--cocoa); padding: 6px; }
.cart-btn svg { width: 26px; height: 26px; }
.cart-count {
  position: absolute; top: -4px; right: -6px; background: var(--cocoa); color: var(--cream);
  font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px;
  display: none; align-items: center; justify-content: center; padding: 0 5px;
}
.cart-count.show { display: flex; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--cocoa); }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Page sections ---------- */
.hero { padding: 80px 0 60px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); max-width: 820px; margin-bottom: 30px; }
.page-head { padding: 64px 0 20px; text-align: center; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); }
.page-head p { color: var(--cocoa-soft); margin-top: 8px; font-size: 18px; }
.section { padding: 40px 0 70px; }
.section h2.center { text-align: center; font-size: 34px; margin-bottom: 30px; }

.prose p { margin-bottom: 18px; }
.prose h2 { font-size: 28px; margin: 34px 0 14px; }
.prose .sign { font-family: 'Playfair Display', serif; font-style: italic; font-size: 24px; }

.panel { background: var(--cream); border-radius: 10px; padding: 40px; box-shadow: 0 6px 24px rgba(74,44,31,.06); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.about-grid img { border-radius: 10px; width: 100%; }
.about-grid h1 { font-size: 44px; margin-bottom: 20px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; border-radius: 4px; }

/* ---------- Favorites (home) ---------- */
.favs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fav { background: var(--cream); border-radius: 10px; overflow: hidden; text-decoration: none; display: block; transition: transform .2s; }
.fav:hover { transform: translateY(-3px); }
.fav img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.fav div { padding: 16px 18px 20px; }
.fav h3 { font-size: 20px; }
.fav span { color: var(--cocoa-soft); font-size: 15px; }

/* ---------- Menu ---------- */
.cat-title { font-size: 30px; margin: 46px 0 18px; text-align: center; }
.menu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.item { background: var(--cream); border-radius: 10px; padding: 26px 26px 24px; display: flex; flex-direction: column; }
.item-top { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.item h3 { font-size: 22px; }
.item .price { font-weight: 700; white-space: nowrap; }
.item .badge { display: inline-block; background: var(--blue); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin: 8px 6px 0 0; }
.item .badge.gf { background: var(--pink); }
.item p.desc { color: var(--cocoa-soft); font-size: 15.5px; margin: 12px 0; }
.item details { font-size: 14px; color: var(--cocoa-soft); margin-bottom: 16px; }
.item summary { cursor: pointer; font-weight: 700; color: var(--cocoa); }
.item details p { margin-top: 6px; }
.buy { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.buy select, .buy input {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1.5px solid rgba(74,44,31,.3);
  border-radius: 4px; background: #fff; color: var(--cocoa);
}
.buy select { flex: 1; min-width: 170px; }
.buy input { width: 70px; }
.buy .btn { flex-basis: 100%; text-align: center; }
.added { font-size: 14px; font-weight: 700; color: #2f7a3c; min-height: 20px; }

.notice { margin: 40px auto 0; max-width: 760px; background: var(--cream); border: 2px dashed var(--cocoa-soft); border-radius: 10px; padding: 18px 22px; font-size: 15px; text-align: center; color: var(--cocoa-soft); }

/* ---------- Steps (parents page) ---------- */
.steps { list-style: none; counter-reset: s; margin: 10px 0 24px; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 54px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 8px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--cocoa); color: var(--cream); display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 18px;
}

/* ---------- Contact ---------- */
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--yellow); padding: 44px 0 30px; font-size: 15px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid rgba(74,44,31,.18); }
.footer-top img { height: 70px; }
.footer-nav { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 26px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a { width: 34px; height: 34px; border-radius: 50%; background: var(--cocoa); color: var(--yellow); display: flex; align-items: center; justify-content: center; }
.social svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 18px; font-size: 13px; color: var(--cocoa-soft); flex-wrap: wrap; gap: 10px; }

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(40,20,10,.35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--cream);
  z-index: 50; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column;
}
.cart.open { transform: none; box-shadow: -10px 0 30px rgba(0,0,0,.12); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid rgba(74,44,31,.12); }
.cart-head h2 { font-size: 26px; }
.cart-close { background: none; border: 0; font-size: 30px; cursor: pointer; color: var(--cocoa); line-height: 1; }
.cart-body { flex: 1; overflow-y: auto; padding: 10px 24px; }
.cart-empty { color: var(--cocoa-soft); padding: 30px 0; text-align: center; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px dashed rgba(74,44,31,.2); }
.line b { display: block; font-size: 15.5px; }
.line small { color: var(--cocoa-soft); }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--cocoa); background: none; cursor: pointer; color: var(--cocoa); font-size: 16px; line-height: 1; }
.line .amt { font-weight: 700; white-space: nowrap; }
.cart-foot { padding: 18px 24px 24px; border-top: 1px solid rgba(74,44,31,.12); }
.cart-foot fieldset { border: 0; margin-bottom: 12px; }
.cart-foot legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.cart-foot label { margin-right: 18px; font-size: 15px; cursor: pointer; }
.cart-foot textarea { width: 100%; font: inherit; font-size: 14px; padding: 10px; border: 1.5px solid rgba(74,44,31,.3); border-radius: 4px; resize: vertical; min-height: 64px; margin-bottom: 12px; }
.subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.cart-foot .fine { font-size: 12.5px; color: var(--cocoa-soft); margin-bottom: 14px; }
.cart-foot .btn { width: 100%; }
.cart-error { color: #a12a2a; font-size: 14px; margin-top: 10px; }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr; grid-template-areas: "logo right"; height: 78px; padding-top: 0; }
  .header-inner .logo { justify-self: start; }
  .logo img { height: 58px; }
  .menu-toggle { display: block; order: 3; margin-left: 4px; }
  .header-inner .nav-left {
    display: none; justify-content: flex-start; position: absolute; top: 112px; z-index: 30; left: 0; right: 0; background: var(--yellow);
    flex-direction: column; gap: 0; padding: 6px 22px 16px; box-shadow: 0 8px 16px rgba(0,0,0,.06);
  }
  .header-inner .nav-left.open { display: flex; }
  .nav-left a { padding: 10px 0; border-bottom: 1px solid rgba(74,44,31,.1); }
  .header-right .btn { display: none; }
  .more-btn { display: none; }
  .more-list { display: flex; position: static; box-shadow: none; padding: 0; min-width: 0; background: none; }
  .more-list a { padding: 10px 0; border-bottom: 1px solid rgba(74,44,31,.1); }
  .hero { padding: 50px 0 40px; }
  .favs, .menu-list, .about-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .panel { padding: 26px; }
  .footer-nav { grid-template-columns: repeat(2, auto); }
}
