/* ===== Obědy u Zuzky — mobile-first ===== */
:root {
  --terracotta: #c4552d;
  --terracotta-dark: #a34321;
  --cream: #fdf6ec;
  --cream-dark: #f5e9d7;
  --ink: #3a2e26;
  --ink-soft: #7a6a5c;
  --green: #4a7c46;
  --green-soft: #eaf3e8;
  --red-soft: #fbeae4;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(58, 46, 38, .08);
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-display: 'Lora', Georgia, serif;
}

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

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

.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }

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

/* ---- header ---- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.brand-name em { color: var(--terracotta); font-style: italic; }
.header-cta {
  background: var(--terracotta); color: #fff; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  transition: background .15s;
}
.header-cta:hover { background: var(--terracotta-dark); }

/* ---- hero ---- */
.hero { padding: 40px 0 28px; text-align: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.5rem); color: var(--ink);
  margin-bottom: 12px;
}
.hero-sub { color: var(--ink-soft); max-width: 520px; margin: 0 auto 14px; }
.hero-note {
  display: inline-block; background: var(--cream-dark);
  padding: 8px 18px; border-radius: 999px; font-size: .9rem;
}

/* ---- jak to funguje ---- */
.howto { padding: 8px 0 24px; }
.howto h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; text-align: center; margin-bottom: 14px; }
.steps {
  list-style: none; counter-reset: step;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 560px; margin: 0 auto;
}
.steps li {
  counter-increment: step;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px 14px 54px; position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 14px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--terracotta); color: #fff;
  font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---- menu ---- */
.week-heading { margin: 24px 0 16px; text-align: center; }
.week-heading h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; }
.week-range { color: var(--ink-soft); font-size: .95rem; }

.menu-status {
  text-align: center; color: var(--ink-soft); padding: 24px 0;
}
.menu-status.error { color: var(--terracotta-dark); font-weight: 600; }
.menu-status:empty { display: none; }

.menu-days { display: flex; flex-direction: column; gap: 18px; padding-bottom: 32px; }

.day-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.day-card.is-past { opacity: .45; filter: grayscale(.7); }
.day-card.is-today { outline: 3px solid var(--terracotta); }

.day-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 18px; background: var(--cream-dark);
  flex-wrap: wrap;
}
.day-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.day-date { color: var(--ink-soft); font-size: .9rem; margin-left: 6px; }

.badge {
  font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
}
.badge-today { background: var(--terracotta); color: #fff; }
.badge-closed { background: var(--red-soft); color: var(--terracotta-dark); }
.badge-open { background: var(--green-soft); color: var(--green); }
.badge-past { background: #eee; color: #888; }

.day-body { padding: 16px 18px; }

.dish { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.dish + .dish { border-top: 1px dashed var(--cream-dark); }
.dish-label { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); display: block; }
.dish-name { font-weight: 600; }
.dish-price { font-weight: 800; color: var(--terracotta); white-space: nowrap; }
.day-note { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); font-style: italic; }

/* ---- výběr jídel + souhrnná objednávka ---- */
.menu-hint {
  text-align: center; color: var(--ink-soft); font-size: .92rem;
  margin: -6px 0 16px;
}

.day-ordered {
  margin-top: 10px; padding: 12px 14px; border-radius: 10px;
  background: var(--green-soft); color: var(--green); font-weight: 700;
}

.order-panel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 18px; margin: 6px 0 32px;
}
.order-panel h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 10px; }
.order-summary { list-style: none; margin-bottom: 16px; }
.order-summary li {
  padding: 8px 0 8px 24px; position: relative; font-size: .95rem;
  border-bottom: 1px dashed var(--cream-dark);
}
.order-summary li::before {
  content: '🍽'; position: absolute; left: 0; top: 8px; font-size: .85rem;
}
.summary-price { color: var(--terracotta); font-weight: 800; white-space: nowrap; }

#order-form { border-top: 1px solid var(--cream-dark); padding-top: 14px; }

.field { margin-bottom: 12px; }
.field > label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--cream-dark);
  border-radius: 10px; font: 400 1rem var(--font-body); background: var(--cream);
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--terracotta); border-color: transparent; }
.field .hint { font-weight: 400; color: var(--ink-soft); }

.dish-choice { display: flex; flex-direction: column; gap: 8px; }
.day-body .dish-choice { margin-top: 4px; }
.dish-option {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--cream-dark); border-radius: 10px; padding: 12px 14px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dish-option:has(input:checked) { border-color: var(--terracotta); background: var(--cream); }
.dish-option input {
  flex: none; width: 18px; height: 18px; margin: 0;
  accent-color: var(--terracotta); cursor: pointer;
}
.dish-option-text {
  flex: 1; display: flex; align-items: baseline;
  justify-content: space-between; gap: 12px;
}
.dish-option-name { font-weight: 600; }
.dish-option-price { font-weight: 800; color: var(--terracotta); white-space: nowrap; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; }
.checkbox-row input { margin-top: 4px; accent-color: var(--terracotta); }

.gdpr-note { font-size: .8rem; color: var(--ink-soft); margin: 10px 0 14px; }

.submit-btn {
  width: 100%; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--green); color: #fff; padding: 13px;
  font: 800 1.05rem var(--font-body);
  transition: opacity .15s;
}
.submit-btn:hover { opacity: .92; }
.submit-btn:disabled { opacity: .6; cursor: wait; }

.form-msg { margin-top: 10px; padding: 10px 14px; border-radius: 10px; font-size: .92rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--green-soft); color: var(--green); font-weight: 700; }
.form-msg.warn { background: var(--red-soft); color: var(--terracotta-dark); font-weight: 600; }

.success-box {
  padding: 18px; background: var(--green-soft); color: var(--green);
  font-weight: 700; text-align: center;
}

/* ---- about / footer ---- */
.about { background: var(--cream-dark); padding: 36px 0; margin-top: 8px; }
.about h2 { font-family: var(--font-display); font-weight: 600; margin-bottom: 12px; }
.about p + p { margin-top: 10px; }
.info-list { list-style: none; margin-bottom: 14px; }
.info-list li { padding: 6px 0 6px 26px; position: relative; }
.info-list li::before {
  content: ''; position: absolute; left: 4px; top: 14px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta);
}

.site-footer { padding: 24px 0 32px; }
.footer-inner { text-align: center; color: var(--ink-soft); font-size: .9rem; }
.footer-inner p + p { margin-top: 4px; }

/* ---- legal page ---- */
.legal { padding: 32px 16px 48px; }
.legal h1 { font-family: var(--font-display); font-weight: 600; margin-bottom: 16px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 22px 0 8px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }

/* ---- desktop ---- */
@media (min-width: 700px) {
  .hero { padding: 56px 0 36px; }
  .day-head { padding: 16px 22px; }
  .day-body, .order-form { padding-left: 22px; padding-right: 22px; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .form-grid .field-full { grid-column: 1 / -1; }
}
