/* ============================================================
   Swamp Loaf — styles
   Palette: green + cream. Mobile-first, responsive to desktop.
   Contrast checked for WCAG AA (text pairs >= 4.5:1).
   ============================================================ */

:root {
  --cream:        #f7f0dd;  /* page background */
  --cream-card:   #fffaf0;  /* cards / raised surfaces */
  --cream-sunk:   #efe6ce;  /* sunken strips */
  --green:        #213a1e;  /* primary text — ~11:1 on cream */
  --green-moss:   #3e6b36;  /* accent: buttons, prices, rules */
  --green-deep:   #15300f;  /* call bar */
  --green-soft:   #4d683b;  /* muted text — ~5.5:1 on cream (WCAG AA) */
  --line:         #d8cba6;  /* hairlines */
  --shadow:       rgba(33, 58, 30, 0.14);
  --radius:       16px;
  --maxw:         960px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--green-moss); }

:focus-visible {
  outline: 3px solid var(--green-moss);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green-deep); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- Example badge (top) ---------- */
.example-top {
  background: var(--green-deep);
  color: #f3ecd4;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 7px 14px;
}

/* ---------- Header ---------- */
.site-header { padding: 30px 0 10px; text-align: center; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.brand .logo { width: 72px; height: 72px; flex: 0 0 auto; }
.brand h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3rem);
  margin: 0;
  letter-spacing: -0.01em;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--green-soft);
  margin: 10px 0 0;
  font-size: clamp(1rem, 3.3vw, 1.2rem);
}

/* ---------- Action bar: hours + call (the money block) ---------- */
.action {
  margin: 22px 0 8px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px var(--shadow);
  overflow: hidden;
}
.action-grid { display: grid; grid-template-columns: 1fr; }

.hours {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.hours h2, .reach h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  font-size: 1.05rem;
}
.hours li .day { font-weight: 600; }
.hours li.closed { color: var(--green-moss); font-weight: 700; }
.hours .open-now {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--green-soft);
}

.reach { padding: 20px 22px; text-align: center; }

.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--green-moss);
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--green-deep);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}
.call-btn svg { width: 26px; height: 26px; flex: 0 0 auto; }
.call-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.call-main { font-size: 1.3rem; font-weight: 700; }
.call-num {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.9;
}
.call-btn:hover { background: #33592d; }
.call-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-deep); }

.reach .note { margin: 12px 0 0; color: var(--green-soft); font-size: 0.95rem; }

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  margin: 44px 0 6px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: 0;
}
.section-head p { color: var(--green-soft); margin: 6px 0 0; }

/* ---------- Bread grid ---------- */
.breads {
  list-style: none;
  padding: 0;
  margin: 22px 0 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.bread {
  position: relative;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.bread:hover { transform: translateY(-4px); box-shadow: 0 12px 24px var(--shadow); }

.bread .pic {
  background: var(--cream-sunk);
  border-bottom: 1px solid var(--line);
  display: block;
}
.bread .pic img { display: block; width: 100%; height: auto; }

.bread .body { padding: 16px 18px 18px; }
.bread .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.bread h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0;
}
/* Price as a round badge pinned to the card's top-right corner */
.bread .price {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-moss);   /* white on moss ~6.3:1 (WCAG AA) */
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 3px solid var(--cream-card);
  box-shadow: 0 3px 10px rgba(33, 58, 30, 0.35);
}
.bread .desc { margin: 6px 0 0; color: var(--green-soft); }

/* ---------- Contact block ---------- */
.contact {
  margin: 40px 0 10px;
  background: var(--green-deep);
  color: #f3ecd4;
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.contact h2 {
  font-family: var(--serif);
  margin: 0 0 14px;
  font-size: 1.4rem;
  color: #fff;
}
.contact a.tel {
  display: inline-block;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 3px solid var(--green-moss);
  padding-bottom: 2px;
}
.contact a.tel:hover { border-bottom-color: #cfe0b0; }
.contact .note { margin: 14px 0 0; color: #cdd7b4; font-size: 0.98rem; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 34px 0 44px;
}
.disclaimer {
  background: var(--cream-sunk);
  border: 1px dashed var(--green-moss);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--green);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto 16px;
}
.site-footer small { color: var(--green-soft); }

/* ============================================================
   Responsive — tablet / desktop
   ============================================================ */
@media (min-width: 620px) {
  .action-grid { grid-template-columns: 1.1fr 1fr; }
  .hours { border-bottom: none; border-right: 1px solid var(--line); }
  .breads { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .breads { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
