/* Foundation styles – visual design to be refined later. */
:root {
  --bg: #fffaf3;
  --bg-alt: #f6ecdc;
  --ink: #2a1d14;
  --muted: #7a6656;
  --accent: #1f5fbf;      /* Bondi-blue; swap for brand colour */
  --accent-ink: #fff;
  --card: #fff;
  --radius: 14px;
  --max: 1100px;
  --narrow: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, sans-serif;
}
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section > h2, .center h2 { text-align: center; margin-bottom: 1em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  padding: 14px 20px;
  background: rgba(255, 250, 243, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.brand { display: block; line-height: 0; }
.brand img { height: 48px; width: auto; }
.footer-logo { display: block; height: 60px; width: auto; margin: 0 auto 40px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.burger { display: inline-flex; flex-direction: column; justify-content: space-between; width: 18px; height: 13px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav.open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--card); color: var(--ink);
  text-decoration: none; font-weight: 600;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-small { padding: 6px 16px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink) !important; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 1.5em 0; }

/* Home hero */
.hero {
  min-height: 82vh;
  display: grid; place-items: center; text-align: center;
  padding: 80px 20px;
  background:
    linear-gradient(rgba(20,12,6,.55), rgba(20,12,6,.55)),
    url("images/hero.jpg") center/cover, #3b2a1e;
  color: #fff;
}
.hero h1 { font-size: clamp(3rem, 10vw, 6rem); }
.hero-logo { margin: .2em 0 .6em; line-height: 0; }
.hero-logo img { width: clamp(220px, 28vw, 340px); height: auto; margin: 0 auto; filter: drop-shadow(0 2px 14px rgba(0,0,0,.45)); }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; opacity: .85; }
.lead { font-size: 1.2rem; opacity: .9; margin: 0; }
.hero .btn:not(.btn-primary) { background: rgba(255,255,255,.95); border-color: transparent; }

/* Inner page hero */
.page-hero {
  display: grid; place-items: center;
  min-height: 38vh; padding: 60px 20px;
  background-size: cover; background-position: center;
  position: relative; color: #fff; text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20,12,6,.55); }
.page-hero h1 { position: relative; font-size: clamp(2.6rem, 8vw, 4.5rem); margin: 0; }

/* Sections */
.section { padding: 80px 20px; }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section.narrow > * { max-width: var(--narrow); }
.alt { background: var(--bg-alt); }
.center { text-align: center; }
.muted { color: var(--muted); }
.text-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.lead-dark { font-size: 1.15rem; }
.prose p { font-size: 1.1rem; }

/* Home tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); text-decoration: none; background: #3b2a1e; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .4s ease, opacity .3s; }
.tile:hover img { transform: scale(1.05); opacity: .6; }
.tile-graphic { background: var(--bg-alt); }
.tile-graphic img, .tile-graphic:hover img { opacity: 1; }
.tile.tile-graphic h4 { place-items: end center; padding-bottom: 18px; background: linear-gradient(transparent 65%, rgba(20,12,6,.6)); }
.tile h4 { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); text-shadow: 0 2px 12px rgba(0,0,0,.4); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery figure { position: relative; margin: 0; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: var(--bg); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure.missing { display: none; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(20,12,6,.7));
  color: #fff; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.15rem;
}

/* Reviews */
.rating { text-align: center; font-weight: 600; margin-top: -1em; margin-bottom: 2em; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.review { margin: 0; padding: 26px; background: var(--card); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.review p { margin: .6em 0 1em; }
.review cite { color: var(--muted); font-style: normal; font-size: .9rem; }
.stars { color: #f2a900; letter-spacing: 2px; }

/* Info grid (contact / hours / about / reservations) */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 0 0 1em; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--muted); }

/* Menu */
.menu-jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 1.5em; }
.menu-jump a { padding: 6px 14px; border: 1px solid rgba(0,0,0,.15); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.menu-jump a:hover { background: var(--ink); color: #fff; }
.menu-section { padding: 40px 0 10px; border-bottom: 1px solid rgba(0,0,0,.08); }
.menu-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.menu-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.menu-price { font-weight: 600; color: var(--accent); margin: 0; }
.menu-items { list-style: none; padding: 0; margin: 1em 0; }
.menu-items li { padding: 12px 0; }
.menu-items li.has-photo { display: grid; grid-template-columns: 80px 1fr; gap: 0 14px; }
.item-photo { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; grid-row: span 2; }
.item-row { display: flex; justify-content: space-between; gap: 16px; }
.item-name { font-weight: 600; }
.item-price { font-weight: 600; white-space: nowrap; }
.item-desc { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.section-photo { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin: 1em 0; }
.extras { background: var(--bg-alt); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 1.5em; }
.extras h3 { font-size: 1rem; font-family: "Inter", sans-serif; }
.extras .item-row { padding: 3px 0; font-size: .95rem; }
.notes { color: var(--muted); font-size: .9rem; padding-left: 1.2em; }

/* Order */
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 2em; }
.order-card { background: var(--card); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.05); }

/* Footer */
.footer { background: var(--ink); color: #f3e9dc; padding: 60px 20px 100px; }
.footer-cols { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.footer .text-link { color: #fff; }
.footer .hours dd { color: #d6c6b4; }
.footer .fine { max-width: var(--max); margin: 40px auto 0; font-size: .85rem; opacity: .7; }

/* Mobile */
.sticky-cta { display: none; }
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 0 6px; }
  .nav.open .nav-links { display: flex; }
  .nav-links .btn-small { display: none; } /* phones already have Book in the hero and bottom bar */
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .section { padding: 56px 16px; }
  .sticky-cta {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
    background: var(--ink);
  }
  .sticky-cta a { padding: 16px 0; text-align: center; color: #fff; text-decoration: none; font-weight: 600; }
  .sticky-cta a:first-child { background: var(--accent); }
  /* Gallery: two smaller square photos per row so the section is half as long */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery figure { aspect-ratio: 1; border-radius: 10px; }
  .gallery figcaption { padding: 24px 10px 8px; font-size: .9rem; }
}

/* Odd tile out spans the full row as a banner */
.tiles .tile:last-child:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: auto; height: 260px; }
@media (max-width: 800px) {
  .tiles .tile:last-child:nth-child(3n+1) { grid-column: auto; aspect-ratio: 1; height: auto; }
  .tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: auto; height: 220px; }
}

/* Feature photo (Our Story) */
.feature-photo { margin: 0 auto 2em; max-width: 700px; }
.feature-photo img { width: 100%; border-radius: var(--radius); }
.feature-photo figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 8px; }
