/* zinnia's dinette — design system
   palette lifted from the dining room: magenta counter, mustard pendants,
   sky-blue checkerboard floor, orange stool tops, cream walls. */

:root {
  --magenta: #c22e8c;
  --magenta-deep: #8e2373;
  --purple: #6d2a7e;
  --mustard: #e0a90f;
  --mustard-deep: #b8860b;
  --sky: #58b7dd;
  --sky-light: #a8dcf0;
  --orange: #e0762f;
  --red: #c1272d;
  --cream: #fdf8ef;
  --paper: #fffdf8;
  --ink: #2b1b2e;
  --ink-soft: #5d4763;

  --display: "Baloo 2", "Comic Sans MS", cursive;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(43, 27, 46, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

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

a { color: var(--magenta); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.4em;
  color: var(--purple);
}

/* ---------- checkerboard motif (the floor) ---------- */
.checks {
  height: 22px;
  background:
    repeating-conic-gradient(var(--sky) 0% 25%, #ffffff 0% 50%)
    0 0 / 44px 44px;
}
.checks--thin { height: 12px; background-size: 24px 24px; }

/* ---------- header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 4px solid var(--magenta);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img { height: 44px; width: auto; }

.logo span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--magenta);
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px 12px;
  flex-wrap: wrap;
  margin-left: auto;
  min-width: 0;
}

.nav .btn { padding: 7px 16px; font-size: 0.95rem; }

.nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--purple);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 3px solid transparent;
}

.nav a:hover { border-bottom-color: var(--mustard); }
.nav a[aria-current="page"] { border-bottom-color: var(--magenta); }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--magenta);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--magenta-deep);
  transition: transform 0.08s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--magenta-deep); }
.btn--mustard { background: var(--mustard); box-shadow: 0 4px 0 var(--mustard-deep); color: var(--ink); }
.btn--mustard:hover { box-shadow: 0 2px 0 var(--mustard-deep); }
.btn--ghost {
  background: transparent;
  color: var(--magenta);
  box-shadow: inset 0 0 0 3px var(--magenta);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 3px var(--magenta-deep); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 860px) {
  .nav-toggle-label {
    display: block;
    margin-left: auto;
    font-family: var(--display);
    font-weight: 700;
    color: var(--purple);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    padding: 4px 10px;
    border: 3px solid var(--purple);
    border-radius: 10px;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 4px;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--purple);
  color: #fff;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 20px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding: 46px 20px 56px; }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 4.8rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 3px 3px 0 var(--magenta);
  margin-bottom: 0.15em;
}

.hero .tagline {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--mustard);
  font-weight: 600;
  margin: 0 0 18px;
}

.hero .address {
  font-size: 1.05rem;
  margin: 0 0 26px;
  color: #f3e8f5;
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  transform: rotate(2deg);
}

/* ---------- roadside letterboard sign ---------- */
.letterboard {
  max-width: 620px;
  margin: -46px auto 0;
  position: relative;
  z-index: 5;
  border: 5px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.letterboard__top {
  background: var(--mustard);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--purple);
  text-align: center;
  padding: 8px 14px;
}

.letterboard__board {
  background:
    repeating-linear-gradient(#fff, #fff 34px, #e8e4da 34px, #e8e4da 37px);
  padding: 16px 14px;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 37px;
}

.letterboard__board .red { color: var(--red); }

/* ---------- sections ---------- */
.section { padding: 64px 20px; }
.section__inner { max-width: 1100px; margin: 0 auto; }
.section--paper { background: var(--paper); }
.section--sky { background: var(--sky-light); }
.section--magenta { background: var(--magenta); color: #fff; }
.section--magenta h2 { color: #fff; }

.section h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
}

.kicker {
  font-family: var(--display);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin: 0 0 4px;
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-top: 8px solid var(--mustard);
}
.card:nth-child(2) { border-top-color: var(--sky); }
.card:nth-child(3) { border-top-color: var(--orange); }
.card h3 { font-size: 1.35rem; }
.card p { margin: 0.4em 0; }

/* menu */
.menu-note {
  background: #fff;
  border: 3px dashed var(--magenta);
  border-radius: var(--radius);
  padding: 18px 24px;
  max-width: 720px;
  margin: 0 0 36px;
  font-size: 1.05rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.menu-cat {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.menu-cat h3 {
  background: var(--purple);
  color: #fff;
  margin: 0;
  padding: 12px 20px;
  font-size: 1.3rem;
}
.menu-cat:nth-child(4n+2) h3 { background: var(--magenta); }
.menu-cat:nth-child(4n+3) h3 { background: var(--orange); }
.menu-cat:nth-child(4n) h3 { background: var(--sky); color: var(--ink); }

.menu-cat ul { list-style: none; margin: 0; padding: 14px 20px 18px; }
.menu-cat li { padding: 5px 0; border-bottom: 1px dotted #e3d9e6; }
.menu-cat li:last-child { border-bottom: none; }
.menu-cat li small { color: var(--ink-soft); display: block; }

/* tins */
.tin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.tin-grid img {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform 0.15s ease;
}
.tin-grid img:hover { transform: rotate(-3deg) scale(1.05); }

.big-number {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 6rem);
  color: var(--mustard);
  line-height: 1;
}

/* gallery */
.gallery {
  columns: 3 280px;
  column-gap: 18px;
  margin-top: 30px;
}
.gallery img {
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  border: 5px solid #fff;
}

/* hours table */
.hours-table {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 1.05rem;
}
.hours-table td {
  padding: 10px 20px;
  border-bottom: 1px dotted #e3d9e6;
}
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child {
  font-family: var(--display);
  font-weight: 700;
  color: var(--purple);
}
.hours-table .lunch { color: var(--orange); font-weight: bold; }

/* history strip */
.history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
  align-items: start;
}
.history figure { margin: 0; }
.history img {
  border-radius: 12px;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}
.history figcaption {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-top: 8px;
  text-align: center;
}

/* heart / donation callout */
.heart-callout {
  display: flex;
  gap: 22px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.heart-callout svg { width: 64px; height: 64px; flex-shrink: 0; }

/* the little map */
.map-frame {
  border-radius: var(--radius);
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
#map { height: 440px; }
@media (max-width: 700px) { #map { height: 340px; } }

.zinnia-pin {
  cursor: pointer;
  position: relative;
  width: 52px;
  height: 72px;
  filter: drop-shadow(0 3px 4px rgba(43, 27, 46, 0.35));
}
.zinnia-pin svg { position: absolute; bottom: 0; left: 3px; }
.zinnia-pin img { position: absolute; top: 0; left: 0; width: 52px; }

.maplibregl-popup-content {
  font-family: var(--body);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 16px;
}
.zinnia-popup strong { font-family: var(--display); color: var(--purple); font-size: 1.05rem; }

.maplibregl-ctrl-group button + button { border-top: 1px solid #eee0e8; }

/* footer */
.site-footer {
  background: var(--purple);
  color: #f3e8f5;
  padding: 46px 20px 30px;
}
.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.site-footer h4 { color: var(--mustard); font-size: 1.15rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .fine {
  max-width: 1100px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
  color: #d9c2de;
}

/* page hero (interior pages) */
.page-hero {
  background: var(--magenta);
  color: #fff;
  padding: 46px 20px;
}
.page-hero .section__inner p { max-width: 720px; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  text-shadow: 2px 2px 0 var(--purple);
  margin-bottom: 0.1em;
}
