/* ==========================================================================
   Shop & restaurant template (Redwater Digital Quick Start)
   Sample business: Juniper & Rye Cafe & Bakehouse (fictional)

   RE-SKIN HERE: change the brand colours and fonts below and the whole site
   follows. Business details (name, phone, address, hours, menu) live in the
   HTML and are marked with <!-- EDIT: ... --> comments.
   ========================================================================== */
:root {
  /* Brand colours */
  --brand: #2b1e17;        /* espresso: header, footer, dark bands */
  --brand-2: #3d2b21;      /* lighter espresso for cards on dark */
  --accent: #f0b23a;       /* saffron: buttons, highlights (use dark text on it) */
  --accent-dark: #d9961c;
  --accent-ink: #8a4a0c;   /* accent as text on light backgrounds (AA on --bg) */
  --sage: #5f7d63;         /* secondary colour for tags and art */
  --bg: #fdf6ea;           /* page background: warm paper */
  --bg-2: #f6e8d0;         /* alternate section background */
  --card: #fffdf8;
  --ink: #241914;          /* body text */
  --ink-soft: #57463b;     /* secondary text (AA on --bg and --bg-2) */
  --line: #e6d3b3;

  /* Fonts: system stacks, no downloads. Swap --display for your brand face. */
  --display: Rockwell, "Rockwell Nova", "Roboto Slab", "Zilla Slab", "Courier New", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: 76px; /* room for the phone action bar */
}
@media (min-width: 760px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 9vw, 4.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--accent); color: var(--brand); padding: .75rem 1rem; font-weight: 700; }
.skip:focus { left: .5rem; top: .5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sample-template notice (delete this block for a real client) ---------- */
.demo-note {
  background: #111; color: #f3f3f3; font-size: .875rem; line-height: 1.4;
  text-align: center; padding: .1rem 1rem;
}
.demo-note a { color: #ffd27a; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .2rem; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--brand); color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand b { font-family: var(--display); font-size: 1.3rem; line-height: 1; display: block; }
.brand small { display: block; font-size: .8rem; color: #e8d8c0; letter-spacing: .08em; text-transform: uppercase; margin-top: .2rem; }
.nav { display: none; gap: .25rem; }
.nav a { color: #fff; text-decoration: none; padding: .6rem .8rem; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-2); color: var(--accent); }
.top .btn { display: none; }
@media (min-width: 760px) {
  .nav { display: flex; }
  .top .btn { display: inline-flex; }
}
.mnav { display: flex; gap: .25rem; overflow-x: auto; padding-bottom: .5rem; }
.mnav a { color: #fff; text-decoration: none; padding: .55rem .75rem; border-radius: 999px; background: var(--brand-2); min-height: 44px; display: inline-flex; align-items: center; font-size: .95rem; white-space: nowrap; }
.mnav a[aria-current="page"] { background: var(--accent); color: var(--brand); font-weight: 700; }
@media (min-width: 760px) { .top .mnav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-main { background: var(--accent); color: var(--brand); }
.btn-main:hover { background: var(--accent-dark); color: var(--brand); }
.btn-line { border-color: currentColor; color: var(--brand); background: transparent; }
.btn-light { border-color: #f3e3c8; color: #fff; background: transparent; }
.btn-light:hover { background: var(--brand-2); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero { background: var(--brand); color: #fff; padding: 2.25rem 0 3rem; position: relative; overflow: hidden; }
.hero::after { /* scalloped awning edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px;
  background: radial-gradient(circle at 12px 0, transparent 12px, var(--bg) 12.5px) 0 0 / 24px 18px repeat-x;
}
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; background: var(--brand-2); color: #f3e3c8; border-radius: 999px; padding: .4rem 1rem; font-size: 1rem; margin-bottom: 1rem; }
.kicker i { width: 9px; height: 9px; border-radius: 50%; background: #7bd389; display: inline-block; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: #efe2cf; max-width: 34em; }
.hero-art { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.hero-art svg { width: 100%; height: auto; }
@media (min-width: 900px) {
  .hero { padding: 3.5rem 0 4.5rem; }
  .hero .wrap { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
}

/* ---------- Hours strip (kept high on the page on purpose) ---------- */
.hours-strip { margin-top: -1rem; position: relative; z-index: 2; }
.hours-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(43,30,23,.10); padding: 1.4rem 1.25rem;
  display: grid; gap: 1.25rem;
}
.hours-card h2 { font-size: 1.6rem; margin: 0 0 .25rem; }
.hours-card .note { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours th, .hours td { text-align: left; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.closed td { color: var(--ink-soft); }
.hours-quick { display: grid; gap: .75rem; align-content: start; }
.hours-quick .btn { width: 100%; }
@media (min-width: 760px) {
  .hours-card { grid-template-columns: 1fr 1.2fr 1fr; align-items: center; padding: 1.75rem 2rem; gap: 2rem; }
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 40em; margin-bottom: 2rem; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .4rem; }
.section-head p:last-child { color: var(--ink-soft); }
@media (min-width: 900px) { .section { padding: 5rem 0; } }

/* ---------- Menu cards ---------- */
.menu-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
.dish { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.dish .art { aspect-ratio: 16 / 9; }
.dish .art svg { width: 100%; height: 100%; }
.dish .body { padding: 1.1rem 1.25rem 1.3rem; }
.dish h3 { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: .35rem; }
.price { font-family: var(--body); font-weight: 700; color: var(--accent-ink); font-size: 1.05rem; white-space: nowrap; }
.dish p { color: var(--ink-soft); margin: 0; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; background: #e3ecdf; color: #2f4a33; border-radius: 999px; padding: .15rem .6rem; margin-top: .7rem; }
.center-cta { text-align: center; margin-top: 2rem; }

/* ---------- Full menu page ---------- */
.menu-page-hero { background: var(--brand); color: #fff; padding: 2.5rem 0 3rem; }
.menu-page-hero h1 { color: #fff; }
.menu-page-hero p { color: #efe2cf; max-width: 36em; font-size: 1.1rem; }
.menu-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.menu-jump a { color: #fff; border: 1px solid #6b5444; border-radius: 999px; padding: .5rem 1rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.menu-jump a:hover { background: var(--brand-2); }
.board { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem; }
.board + .board { margin-top: 1.5rem; }
.board h2 { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: clamp(1.6rem, 6vw, 1.9rem); border-bottom: 3px double var(--line); padding-bottom: .6rem; }
.board h2 svg { width: 34px; height: 34px; flex: none; }
.board .when { font-family: var(--body); font-size: .95rem; font-weight: 600; color: var(--ink-soft); flex-basis: 100%; }
@media (min-width: 640px) { .board .when { flex-basis: auto; margin-left: auto; } }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; }
@media (min-width: 820px) { .items { grid-template-columns: 1fr 1fr; } .board { padding: 2rem 2.25rem; } }
.items li { padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.items .row { display: flex; align-items: baseline; gap: .5rem; }
.items .row b { font-size: 1.08rem; }
.items .row .dots { flex: 1; border-bottom: 2px dotted #cdb48c; transform: translateY(-4px); min-width: 1rem; }
.items p { margin: .2rem 0 0; color: var(--ink-soft); font-size: 1rem; }
.legend { color: var(--ink-soft); font-size: 1rem; margin-top: 1.5rem; }
.diet { font-size: .75rem; font-weight: 700; border-radius: 6px; padding: .05rem .4rem; background: #e3ecdf; color: #2f4a33; margin-left: .3rem; vertical-align: 2px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 1; background: var(--bg-2); }
.gallery figure svg { width: 100%; height: 100%; }
.gallery figcaption { position: absolute; left: .6rem; bottom: .6rem; background: rgba(43,30,23,.86); color: #fff; font-size: .85rem; padding: .2rem .6rem; border-radius: 999px; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery .wide { grid-column: span 2; aspect-ratio: auto; }
}

/* ---------- Story + reviews ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.story-art { border-radius: var(--radius); overflow: hidden; }
.story-art svg { width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.5rem; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; text-align: center; }
.facts b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--accent-ink); }
.facts span { font-size: .85rem; color: var(--ink-soft); }
.reviews { display: grid; gap: 1rem; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: var(--brand); color: #f6ead8; border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; margin: 0; }
.review .stars { color: var(--accent); letter-spacing: .15em; font-size: 1.1rem; }
.review blockquote { margin: .5rem 0 1rem; font-size: 1.05rem; }
.review figcaption { font-size: .92rem; color: #d9c6ab; }

/* ---------- Visit / map ---------- */
.visit { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: stretch; } }
.visit-info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.visit-info dl { margin: 0 0 1.25rem; display: grid; gap: .9rem; }
.visit-info dt { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.visit-info dd { margin: .1rem 0 0; font-size: 1.08rem; }
.visit-info dd a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 280px; position: relative; background: #eae2d0; }
.map svg { width: 100%; height: 100%; min-height: 280px; }
.map .map-label { position: absolute; right: .75rem; bottom: .75rem; background: rgba(255,253,248,.95); border-radius: 10px; padding: .35rem .7rem; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.foot { background: var(--brand); color: #e8d8c0; padding: 3rem 0 2rem; }
.foot .wrap { display: grid; gap: 2rem; }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font-size: 1.25rem; color: #fff; margin-bottom: .6rem; }
.foot a { color: var(--accent); display: inline-flex; align-items: center; min-height: 44px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-block; padding: .45rem 0; min-height: 44px; }
.foot .small { font-size: .95rem; color: #cbb89c; border-top: 1px solid #4a372b; padding-top: 1.25rem; grid-column: 1 / -1; }

/* ---------- Phone action bar ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(43,30,23,.97); box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
.actionbar .btn { min-height: 52px; padding: .6rem .5rem; }
@media (min-width: 760px) { .actionbar { display: none; } }
