/* The Kiddo Organic Kitchen */

:root {
  --cream: #FFF8EA;
  --orange: #EF5E3D;
  --blue: #97C5E9;
  --blue-dark: #2870AA;
  --green: #3AA076;
  --yellow: #F8BD3C;
  --zelle: #6D1ED4;
  --ink: #20180F;
  --ink-soft: rgba(32, 24, 15, .8);
  --muted: #6B6258;
  --line: #EADFCB;
  --white: #FFFFFF;
  --font-head: "Poppins", sans-serif;
  --font-body: "Archivo", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

button { font: inherit; }

.c-orange { color: var(--orange); }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

.hero__logo { width: min(352px, 70vw); }

.hero__art {
  width: min(715px, 100%);
  margin-top: -10px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-12px) rotate(-1deg); }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--orange);
  padding: 24px 0;
}

.marquee__track {
  display: flex;
  gap: 52px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__track span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--cream);
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Menu ---------- */

.menu {
  max-width: 1425px;
  margin: 0 auto;
  padding: 80px;
}

.menu__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.15;
  color: var(--blue);
}

.menu__hint {
  margin: 12px 0 32px;
  font-size: 18px;
  color: var(--muted);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dish {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--blue);
}

.dish--veggie { background: var(--green); }

.dish__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

/* Shown until the dish photo is uploaded */
.dish__img--placeholder {
  object-fit: contain;
  padding: 24px;
  background: var(--cream);
}

.dish__price {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
}

.dish__name {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  text-transform: uppercase;
}

.dish__desc {
  margin: 0;
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.dish--veggie .dish__desc { color: var(--white); }

.dish__btn {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
}

.dish--veggie .dish__btn { background: var(--ink); }

.dish__btn:active { transform: scale(.97); }

.dish__btn[aria-pressed="true"] {
  background: var(--white);
  color: var(--green);
  border-color: var(--green);
}

.dish__btn:focus-visible,
.plans__card:focus-visible,
.cart-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- How it works ---------- */

.how {
  background: var(--yellow);
  padding: 80px;
}

.how__top,
.how__steps {
  max-width: 1265px;
  margin: 0 auto;
}

.how__top {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 24px;
}

.how__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 5.3vw, 76px);
  line-height: 1.1;
  color: var(--white);
}

.how__title span { display: block; }

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 0;
  margin-top: 48px;
  list-style: none;
}

.how__steps h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 27px;
  color: var(--orange);
}

.how__steps p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

/* ---------- Plans ---------- */

.plans {
  background: var(--blue);
  padding: 100px 16px;
  text-align: center;
}

.plans__title {
  margin: 0 0 40px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 64px);
  color: var(--cream);
}

.plans__grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.plans__card {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform .2s;
}

.plans__card:hover { transform: translateY(-4px) rotate(-2deg); }

.plans__card img { width: 210px; }

.plans__note {
  margin: 24px 0 0;
  font-size: 18px;
  color: var(--cream);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--blue);
  padding: 0 16px 120px;
  text-align: center;
  color: var(--cream);
  font-size: 23px;
}

.footer p { max-width: 640px; margin: 0 auto; line-height: 1.4; }

.footer a { color: var(--white); font-weight: 700; }

.footer__small { margin-top: 24px !important; font-size: 14px; opacity: .85; }

/* ---------- Floating cart button ---------- */

.cart-fab {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(239, 94, 61, .35);
  cursor: pointer;
  transform: translateX(-50%);
}

.cart-fab[hidden] { display: none; }

.cart-fab__count { opacity: .9; }

.cart-fab.bump { animation: bump .35s ease; }

@keyframes bump {
  50% { transform: translateX(-50%) scale(1.08); }
}

/* ---------- Drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  background: rgba(31, 31, 31, .45);
  font-family: var(--font-body);
}

.drawer[hidden] { display: none; }

.drawer__panel {
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100%;
  background: var(--cream);
  box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1.5px solid var(--line);
}

.drawer__head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  color: var(--orange);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px 22px;
}

.drawer__foot {
  padding: 16px 22px 22px;
  border-top: 1.5px solid var(--line);
  background: var(--white);
}

.label {
  margin: 22px 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.label:first-child { margin-top: 0; }

.freq {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.freq button {
  padding: 10px 6px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-head);
  line-height: 1.25;
  cursor: pointer;
}

.freq button[aria-pressed="true"] {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

.freq b { display: block; font-size: 15px; }

.freq small { font-size: 11px; opacity: .85; }

.discount-note {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

.day {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.day__tag {
  flex-shrink: 0;
  width: 44px;
  padding: 6px 0;
  border-radius: 10px;
  background: var(--yellow);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
}

.day__info { flex: 1; min-width: 0; }

.day__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.day__price { font-size: 12px; color: var(--muted); }

.day__remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.empty { font-size: 14px; color: var(--muted); }

.hint {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1.5px dashed var(--orange);
  border-radius: 12px;
  background: var(--white);
  font-size: 13px;
}

.fields { display: grid; gap: 10px; }

.fields input,
.fields textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}

.fields input:focus,
.fields textarea:focus { border-color: var(--orange); }

.fields textarea { min-height: 64px; resize: vertical; }

.methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.methods button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.methods .m-zelle { color: var(--zelle); }

.methods .m-zelle[aria-pressed="true"] { border-color: var(--zelle); background: var(--zelle); color: var(--white); }

.methods .m-card[aria-pressed="true"] { border-color: var(--orange); background: var(--orange); color: var(--white); }

.zelle-logo { display: block; height: 22px; width: auto; fill: currentColor; }

.card-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--yellow);
  font-size: 14px;
  font-weight: 600;
}

.zelle-box {
  margin-top: 12px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 14px;
  line-height: 1.45;
}

.zelle-box img {
  width: 150px;
  margin: 10px auto 4px;
  border-radius: 8px;
}

.zelle-box .qr-caption { text-align: center; font-size: 12px; color: var(--muted); }

.row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 14px;
}

.row--discount { color: var(--green); }

.row--total {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
}

.error {
  margin: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 13px 15px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.btn--zelle { background: var(--zelle); }

.btn--card { background: var(--orange); }

.btn--whatsapp {
  margin-top: 8px;
  border-color: var(--green);
  background: var(--white);
  color: var(--green);
}

.btn.is-disabled { opacity: .55; }

.btn[disabled] { cursor: wait; }

/* ---------- Toast (thank-you message) ---------- */

.toast {
  position: fixed;
  left: 50%;
  top: 20px;
  z-index: 200;
  width: min(480px, calc(100% - 32px));
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  transform: translateX(-50%);
}

.toast[hidden] { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 810px) {
  .menu, .how { padding: 56px 16px; }
  .menu__title { font-size: 40px; }
  .how__top { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; gap: 28px; }
  .footer { font-size: 19px; }
}

@media (max-width: 560px) {
  .menu__grid { grid-template-columns: 1fr; }
  .menu__title { font-size: 34px; }
  .marquee__track span { font-size: 16px; }
  .plans__card img { width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art, .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}
