/* Shop Window — F&B / retail / makers — photo-forward menu */
:root,
[data-palette="ocean"] {
  --bg: #fffaf7;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --brand: #0e7490;
  --brand-dark: #155e75;
  --brand-soft: #cffafe;
  --accent: #c2410c;
  --hero-from: #0e7490;
  --hero-to: #155e75;
  --sticky: #0e7490;
  --radius: 16px;
  --shadow: 0 10px 32px rgb(28 25 23 / 0.1);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --sticky-cta-h: 4.25rem;
  /*
   * Page gutter (each side). Pixel-class phones (~412px) need ~2rem so
   * header/hero copy is not flush to the screen edge.
   */
  --pad-x: 2rem;
}
[data-palette="forest"] {
  --brand: #15803d;
  --brand-dark: #166534;
  --brand-soft: #dcfce7;
  --accent: #b45309;
  --hero-from: #166534;
  --hero-to: #14532d;
  --sticky: #15803d;
}
[data-palette="sunset"] {
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --brand-soft: #ffedd5;
  --accent: #0e7490;
  --hero-from: #c2410c;
  --hero-to: #9a3412;
  --sticky: #c2410c;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  min-width: 0;
  overflow-x: clip;
  /* Extra bottom space only when sticky WhatsApp bar is present */
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
body:has(.sticky-cta) {
  padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom, 0px) + 0.75rem);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.wrap {
  /* Inset via padding (border-box) so full-bleed hero bg can still go edge-to-edge */
  width: min(1080px, 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-left: calc(var(--pad-x) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--pad-x) + env(safe-area-inset-right, 0px));
  min-width: 0;
}
.muted { color: var(--muted); }
.mt { margin-top: 0.85rem; }

/* ---- Header ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(255 250 247 / 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}
.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: clamp(0.92rem, 3.8vw, 1.05rem);
}
.nav {
  display: none;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--brand-dark); }
@media (min-width: 720px) {
  .nav { display: flex; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgb(194 65 12 / 0.28);
}
.btn-ghost {
  background: rgb(255 255 255 / 0.15);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.4);
}
/* Mobile/touch: mailto button. Desktop (fine pointer + hover): plain copyable address */
.email-cta--plain {
  display: none;
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  text-align: inherit;
}
.email-cta__addr {
  user-select: all;
  -webkit-user-select: all;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.email-cta__label { opacity: 0.9; font-weight: 700; margin-right: 0.35rem; }
@media (hover: hover) and (pointer: fine) {
  .email-cta--mailto { display: none !important; }
  .email-cta--plain { display: block; }
}
.cta-band .email-cta--mailto {
  margin-top: 0.55rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: min(52vh, 420px);
  color: #fff;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(28 25 23 / 0.28), rgb(28 25 23 / 0.86));
}
.hero__bg--fallback {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
}
.hero__content {
  position: relative;
  /* Horizontal inset from .wrap; extra vertical air for mobile */
  padding-top: 2.5rem;
  padding-bottom: 2.25rem;
  min-width: 0;
}
.hero__badge {
  display: inline-flex;
  max-width: 100%;
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  overflow-wrap: anywhere;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 6vw, 2.7rem);
  line-height: 1.18;
  margin: 0 0 0.55rem;
  max-width: min(22ch, 100%);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hero .tagline {
  margin: 0;
  max-width: min(34rem, 100%);
  opacity: 0.95;
  font-size: clamp(0.92rem, 3.5vw, 1.05rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.hero__actions .btn { width: 100%; }
@media (min-width: 520px) {
  .hero {
    min-height: 340px;
  }
  .hero__content {
    padding-top: 2.75rem;
    padding-bottom: 2.5rem;
  }
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .hero__actions .btn { width: auto; }
}

/* ---- Sections ---- */
section { padding: 2rem 0; }
@media (min-width: 720px) {
  section { padding: 3rem 0; }
}
#menu { padding-top: 1.75rem; }
/* Anchor targets clear sticky header */
#menu, #about, #visit, #contact {
  scroll-margin-top: calc(4.25rem + env(safe-area-inset-top, 0px));
}
.section-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.35rem;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4.5vw, 1.95rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.section-lead {
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 34rem;
  overflow-wrap: anywhere;
}

/* ---- Menu grid (mobile-first: never force min-width overflow) ---- */
.menu {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  min-width: 0;
}
@media (min-width: 480px) {
  .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .menu {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
}
.dish {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgb(28 25 23 / 0.06);
  min-width: 0;
}
.dish__img {
  position: relative;
  aspect-ratio: 5 / 3;
  background-size: cover;
  background-position: center;
  background-color: #e7e5e4;
}
.dish__img--empty {
  background: linear-gradient(135deg, var(--brand-soft), #fed7aa);
}
.dish__price {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.12);
  max-width: calc(100% - 1.3rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dish__body { padding: 0.95rem 1rem 1.1rem; min-width: 0; }
.dish h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}
.dish p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

/* ---- About / story ---- */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-grid {
  display: grid;
  gap: 1.35rem;
  align-items: start;
  grid-template-columns: 1fr;
  min-width: 0;
}
@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.prose p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  min-width: 0;
}
.gallery > div {
  aspect-ratio: 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  min-width: 0;
}

/* ---- Visit ---- */
.split {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  min-width: 0;
}
@media (min-width: 640px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.card .muted { overflow-wrap: anywhere; word-break: break-word; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  min-width: 0;
}
.hours li:last-child { border-bottom: 0; }
.hours span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hours span:last-child {
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

/* ---- Contact ---- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
@media (min-width: 640px) {
  .cta-band { padding: 2.25rem 1.5rem; }
}
.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  overflow-wrap: anywhere;
}
.cta-band p {
  margin: 0 0 1.1rem;
  opacity: 0.92;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: none;
  width: 100%;
  max-width: 22rem;
}
.cta-band .email-cta--mailto {
  width: 100%;
  max-width: 22rem;
  margin-top: 0.55rem;
  margin-inline: auto;
}
.cta-band .email-cta--plain {
  text-align: center;
}
.social-row {
  text-align: center;
  margin: 1rem 0 0;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  overflow-wrap: anywhere;
}
.social-row a { white-space: nowrap; }

/* ---- Sticky mobile CTA ---- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgb(28 25 23 / 0.96);
  color: #fff;
  padding: 0.7rem calc(var(--pad-x) + env(safe-area-inset-right, 0px))
    calc(0.7rem + env(safe-area-inset-bottom, 0px))
    calc(var(--pad-x) + env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  box-shadow: 0 -8px 24px rgb(0 0 0 / 0.18);
}
.sticky-cta span {
  color: #e7e5e4;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 38%;
}
.sticky-cta__btn {
  padding: 0.62rem 1rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(100%, 16rem);
}
@media (max-width: 380px) {
  .sticky-cta span { display: none; }
  .sticky-cta__btn { max-width: none; width: 100%; }
}

/* ---- Footer ---- */
.site {
  padding: 1.1rem calc(var(--pad-x) + env(safe-area-inset-left, 0px))
    1.25rem calc(var(--pad-x) + env(safe-area-inset-right, 0px));
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.site p { margin: 0; max-width: 40rem; margin-inline: auto; }
.site a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 600;
}
.site a:hover { color: var(--brand, #0f766e); }

/* Tablets / desktop — slightly more air */
@media (min-width: 720px) {
  :root,
  [data-palette="ocean"],
  [data-palette="forest"],
  [data-palette="sunset"] {
    --pad-x: 2.25rem;
  }
}

/* Very narrow devices only — still keep clear gutters */
@media (max-width: 359px) {
  :root,
  [data-palette="ocean"],
  [data-palette="forest"],
  [data-palette="sunset"] {
    --pad-x: 1.5rem;
  }
  .top__inner { gap: 0.5rem; }
  .brand__mark { width: 36px; height: 36px; border-radius: 10px; }
}
