/* ============================================
   EatBerne.com — Swiss village food guide
   Palette: Bern flag red, gold, bear black,
   warm linen, alpine pine
   ============================================ */
:root {
  --red: #C0142B;
  --red-dark: #9E0F22;
  --gold: #E9A820;
  --ink: #241F1A;
  --linen: #FAF5EC;
  --linen-deep: #F1E9DA;
  --pine: #33502F;
  --paper: #FFFDF8;
  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background: var(--linen);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
}

a { color: var(--red); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

img, svg { display: block; max-width: 100%; }

/* ---------- Top nav ---------- */
.topbar {
  background: var(--red);
  color: #fff;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: 0.01em;
}
.swiss-cross {
  width: 1.15em; height: 1.15em; flex: none;
  background: #fff;
  position: relative;
  border-radius: 2px;
}
.swiss-cross::before, .swiss-cross::after {
  content: ""; position: absolute; background: var(--red);
}
.swiss-cross::before { left: 42%; top: 16%; width: 16%; height: 68%; }
.swiss-cross::after  { top: 42%; left: 16%; height: 16%; width: 68%; }
.topbar nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar nav a {
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.09em;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
}
.topbar nav a:hover { border-bottom-color: var(--gold); }

/* ---------- Chalet fretwork scallop trim ---------- */
.fretwork {
  height: 18px;
  background:
    radial-gradient(circle at 50% 0, var(--red) 0 9px, transparent 9.5px)
    top center / 24px 18px repeat-x;
}
.fretwork--pine {
  background:
    radial-gradient(circle at 50% 0, var(--pine) 0 9px, transparent 9.5px)
    top center / 24px 18px repeat-x;
}

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--red);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: end;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.03;
  margin-bottom: 1.1rem;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lede {
  font-size: 1.15rem;
  max-width: 34rem;
  margin-bottom: 1.6rem;
  color: #FFE9DD;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  margin-bottom: 3rem;
}
.hero-cta:hover { background: #f7bb3d; }
.hero-art { align-self: end; }
.hero-art svg { width: 100%; max-width: 320px; margin: 0 auto; }

/* ---------- Section scaffolding ---------- */
main { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.5rem 0 1rem; }
.section-head { margin-bottom: 1.75rem; max-width: 46rem; }
.kicker {
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red);
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.kicker::before {
  content: ""; width: 0.85em; height: 0.85em; flex: none;
  background:
    linear-gradient(var(--red), var(--red)) 50% 50% / 100% 34% no-repeat,
    linear-gradient(var(--red), var(--red)) 50% 50% / 34% 100% no-repeat;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.15;
}
.section-head p { margin-top: 0.6rem; color: #4c443b; }

/* ---------- Restaurant cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}
.card {
  background: var(--paper);
  border: 1.5px solid var(--linen-deep);
  border-top: 6px solid var(--red);
  border-radius: 10px;
  padding: 1.4rem 1.4rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(36, 31, 26, 0.12);
}
.card .tag {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pine);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
}
.card p { font-size: 0.95rem; color: #4c443b; flex: 1; }
.card .go {
  font-weight: 800; font-size: 0.9rem; color: var(--red);
}
.card--gold { border-top-color: var(--gold); }
.card--pine { border-top-color: var(--pine); }

/* ---------- Explore band ---------- */
.explore {
  background: var(--pine);
  color: #fff;
  margin-top: 3rem;
}
.explore-inner { max-width: 1060px; margin: 0 auto; padding: 3.25rem 1.5rem; }
.explore .kicker { color: var(--gold); }
.explore .kicker::before {
  background:
    linear-gradient(var(--gold), var(--gold)) 50% 50% / 100% 34% no-repeat,
    linear-gradient(var(--gold), var(--gold)) 50% 50% / 34% 100% no-repeat;
}
.explore h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.75rem; }
.explore > .explore-inner > p { max-width: 44rem; color: #E4EBDF; }
.explore-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.2rem;
}
.explore-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}
.explore-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.35rem; }
.explore-card p { font-size: 0.93rem; color: #DDE6D6; margin-bottom: 0.6rem; }
.explore-card a { color: var(--gold); font-weight: 800; font-size: 0.9rem; text-decoration: none; }
.explore-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #CFC6BA;
  text-align: center;
  padding: 2.25rem 1.5rem 2.5rem;
  font-size: 0.9rem;
}
footer .bear { width: 70px; height: auto; margin: 0 auto 0.9rem; opacity: 0.85; }
footer a { color: var(--gold); }

/* ---------- Restaurant detail pages ---------- */
.detail-hero { background: var(--red); color: #fff; }
.detail-hero-inner { max-width: 1060px; margin: 0 auto; padding: 2.75rem 1.5rem 2.5rem; }
.detail-hero .crumb {
  font-size: 0.85rem; margin-bottom: 1.1rem;
}
.detail-hero .crumb a { color: #FFD9C9; text-decoration: none; font-weight: 700; }
.detail-hero .crumb a:hover { text-decoration: underline; }
.detail-hero .tag {
  display: inline-block;
  background: var(--gold); color: var(--ink);
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  margin-bottom: 0.8rem;
}
.detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.08;
}
.detail-hero .sub { margin-top: 0.6rem; color: #FFE9DD; max-width: 40rem; font-size: 1.1rem; }

.detail-body {
  display: grid;
  grid-template-columns: 1.55fr 0.9fr;
  gap: 2.5rem;
  padding: 2.75rem 0 3rem;
  align-items: start;
}
.detail-body .prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 1.6rem 0 0.5rem;
}
.detail-body .prose h2:first-child { margin-top: 0; }
.detail-body .prose p { margin-bottom: 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 0.9rem; }
.chip {
  background: var(--linen-deep);
  border: 1px solid #E2D6BF;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.factbox {
  background: var(--paper);
  border: 1.5px solid var(--linen-deep);
  border-top: 6px solid var(--gold);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  position: sticky;
  top: 1rem;
}
.factbox h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}
.factbox dl { display: grid; gap: 0.75rem; }
.factbox dt {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pine);
}
.factbox dd { font-size: 0.97rem; }
.factbox .btn {
  display: block;
  text-align: center;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-top: 1.1rem;
}
.factbox .btn:hover { background: var(--red-dark); }
.factbox .btn.secondary {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  margin-top: 0.55rem;
}
.factbox .btn.secondary:hover { background: var(--red); color: #fff; }
.verify-note { font-size: 0.8rem; color: #7a7166; margin-top: 0.9rem; }

.next-stops { padding: 0 0 3.5rem; }
.next-stops h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 2.75rem; }
  .hero-art svg { max-width: 220px; margin: 0; }
  .detail-body { grid-template-columns: 1fr; gap: 1.75rem; }
  .factbox { position: static; }
}

/* ---------- Menu images ---------- */
.menu-img {
  width: 100%;
  border: 1.5px solid var(--linen-deep);
  border-radius: 10px;
  margin: 0.75rem 0;
  box-shadow: 0 6px 18px rgba(36,31,26,0.08);
}

/* ---------- Shopping page ---------- */
.shop-block {
  background: var(--paper);
  border: 1.5px solid var(--linen-deep);
  border-left: 6px solid var(--gold);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.4rem;
}
.shop-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}
.shop-block .shop-type {
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pine);
  display: block; margin-bottom: 0.6rem;
}
.shop-block p { margin-bottom: 0.7rem; }
.shop-block .shop-facts {
  font-size: 0.92rem;
  color: #4c443b;
  border-top: 1px dashed #E2D6BF;
  padding-top: 0.7rem;
}
.shop-block .shop-facts a { font-weight: 700; }
.shop-block--pine { border-left-color: var(--pine); }

/* ---------- Image lightbox ---------- */
.menu-img { cursor: zoom-in; }
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2vh 2vw;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 96vw;
  max-height: 96vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-hint {
  position: fixed;
  bottom: 1.2rem; left: 0; right: 0;
  text-align: center;
  color: #E8DFD2;
  font-size: 0.9rem;
  pointer-events: none;
}
