/* Green Chef landing pages (greenchef.foodgames.co.il)
   Concept: the kitchen table. The teal gingham cloth from the real workshops is
   the signature surface; characters sit on it as die-cut stickers, packages are
   taped recipe cards, and the app is explained as a recipe index card. */
:root {
  --cloth: #4fa3a5;          /* gingham teal, from the workshop tablecloths */
  --cloth-soft: #d6eeec;
  --chef: #5baa3c;           /* the chef's fur */
  --chef-deep: #2f6b2a;
  --tomato: #e4472e;
  --yolk: #ffc23d;
  --ink: #1d3b36;            /* text */
  --ink-soft: #4b625d;
  --paper: #ffffff;
  --paper-warm: #fffaf0;
  --rule: #b9d8f0;           /* index-card ruling */
  --wa: #1fa855;
  --wrap: 1140px;
  --display: 'Fredoka', 'Assistant', sans-serif;
  --text: 'Assistant', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--text); font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Type scale (perfect fourth, 1.333) */
h1, h2, h3, .display { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7.4vw, 76px); font-weight: 700; }
h2 { font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 16px; }
h3 { font-size: 24px; font-weight: 500; margin-bottom: 6px; }
p { max-width: 62ch; }
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--ink-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
section { padding: 88px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Gingham: two translucent stripe layers; the overlap makes the darker squares */
.gingham {
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(79, 163, 165, 0.42) 50%, transparent 50%),
    linear-gradient(rgba(79, 163, 165, 0.42) 50%, transparent 50%);
  background-size: 44px 44px;
}
.soft { background: var(--cloth-soft); }
.warm { background: var(--paper-warm); }

/* Skip link + focus */
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--yolk); padding: 8px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 3px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 22px; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--yolk); text-underline-offset: 6px; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* Buttons: chunky, printed-sticker feel (ink outline + hard offset shadow) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 26px; border-radius: 16px; font-family: var(--display); font-weight: 600; font-size: 18px; text-decoration: none; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-yolk { background: var(--yolk); color: var(--ink); }
.btn-wa { background: var(--wa); color: var(--paper); }
.btn-plain { background: var(--paper); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 6px 16px; font-size: 16px; box-shadow: 3px 3px 0 var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Store buttons (plain until the official badges are added) */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 20px 8px 18px; background: var(--ink); color: var(--paper); border-radius: 16px; text-decoration: none; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--chef-deep); transition: transform 0.12s ease; }
.store:hover { transform: translate(-2px, -2px); }
.store small { display: block; font-size: 13px; opacity: 0.85; line-height: 1.2; }
.store strong { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.store svg { width: 26px; height: 26px; flex: none; }
html[data-os='ios'] .store[data-store='android'],
html[data-os='android'] .store[data-store='ios'] { background: var(--paper); color: var(--ink); box-shadow: none; }

/* Sticker: white die-cut outline around transparent artwork */
.sticker { filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(4px 7px 0 rgba(29, 59, 54, 0.22)); }

/* Tape strip for cards and photos */
.taped { position: relative; }
.taped::before { content: ''; position: absolute; top: -12px; inset-inline-start: 50%; width: 92px; height: 26px; transform: translateX(50%) rotate(-4deg); background: rgba(255, 194, 61, 0.78); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); z-index: 3; }

/* ===== Hero: the table ===== */
.hero { padding: 40px 0 64px; overflow: hidden; border-bottom: 3px solid var(--ink); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.menu-card { background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; padding: 36px 34px 32px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-1.2deg); position: relative; }
.menu-card .ages { display: inline-block; font-family: var(--display); font-weight: 500; background: var(--tomato); color: var(--paper); padding: 4px 14px; border-radius: 999px; transform: rotate(-3deg); margin-bottom: 14px; }
.menu-card h1 { margin-bottom: 16px; }
.menu-card .lead { margin-bottom: 26px; }
.menu-card .more { margin-top: 18px; font-weight: 600; }
.table-top { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 540px; margin-inline-start: auto; }
.table-top .chef { position: absolute; width: 60%; bottom: 0; right: 8%; z-index: 3; }
.table-top .bito { position: absolute; width: 27%; bottom: 2%; left: 4%; z-index: 4; }
.photo-card { position: absolute; background: var(--paper); padding: 8px 8px 30px; border: 2px solid var(--ink); border-radius: 6px; width: 44%; }
.photo-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: 3px; }
.photo-card span { position: absolute; bottom: 4px; right: 0; left: 0; text-align: center; font-family: var(--display); font-size: 14px; font-weight: 500; }
.photo-card.c1 { top: 4%; left: 0; transform: rotate(-8deg); }
.photo-card.c2 { top: 0; right: 2%; transform: rotate(6deg); width: 40%; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .menu-card { padding: 28px 22px; transform: rotate(-0.6deg); }
  .table-top { max-width: 420px; margin: 8px auto 0; }
}

/* The one orchestrated moment: stickers land on the table */
@keyframes land { 0% { opacity: 0; transform: translateY(-40px) rotate(var(--r, 0deg)) scale(1.08); } 70% { opacity: 1; transform: translateY(4px) rotate(var(--r, 0deg)); } 100% { opacity: 1; transform: rotate(var(--r, 0deg)); } }
.table-top > * { animation: land 0.7s cubic-bezier(.2, .8, .3, 1.2) both; }
.table-top .c1 { --r: -8deg; animation-delay: 0.1s; }
.table-top .c2 { --r: 6deg; animation-delay: 0.25s; }
.table-top .chef { animation-delay: 0.45s; }
.table-top .bito { animation-delay: 0.65s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ===== Meet the characters ===== */
.meet .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.meet p { margin-bottom: 14px; font-size: 19px; }
.meet .duo { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.meet .duo .chef { width: 58%; }
.meet .duo .bito { width: 30%; }
@media (max-width: 880px) { .meet .wrap { grid-template-columns: 1fr; } .meet .duo { order: -1; max-width: 360px; margin: 0 auto; } }

/* ===== Video ===== */
.video-frame { border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 8px 8px 0 var(--cloth); background: var(--ink); max-width: 920px; }
.video-frame video { width: 100%; max-height: 72vh; object-fit: contain; }
.video .wrap > h2 { margin-bottom: 26px; }

/* ===== Recipe index card (what's inside + how it works) ===== */
.recipe-card { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.recipe-card header { padding: 26px 32px 18px; border-bottom: 3px solid var(--tomato); }
.recipe-card header h2 { margin: 0; }
.recipe-card header p { color: var(--ink-soft); margin-top: 4px; }
.recipe-body { display: grid; grid-template-columns: 1fr 1fr; background-image: repeating-linear-gradient(transparent 0 37px, var(--rule) 37px 38px); background-position: 0 6px; }
.recipe-body > div { padding: 22px 32px 30px; }
.recipe-body > div + div { border-inline-start: 2px solid rgba(228, 71, 46, 0.35); }
.recipe-body h3 { font-size: 22px; color: var(--tomato); margin-bottom: 8px; line-height: 38px; }
.ingredients { list-style: none; }
.ingredients li { display: flex; gap: 12px; line-height: 38px; }
.ingredients b { font-family: var(--display); font-weight: 600; min-width: 2.2em; color: var(--chef-deep); }
.method { list-style: none; counter-reset: m; }
.method li { counter-increment: m; position: relative; padding-inline-start: 46px; line-height: 38px; margin-bottom: 0; }
.method li::before { content: counter(m); position: absolute; inset-inline-start: 0; top: 3px; width: 32px; height: 32px; border-radius: 50%; background: var(--yolk); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 600; line-height: 1; }
@media (max-width: 760px) {
  .recipe-body { grid-template-columns: 1fr; }
  .recipe-body > div + div { border-inline-start: 0; border-top: 2px solid rgba(228, 71, 46, 0.35); }
  .recipe-card header, .recipe-body > div { padding-inline: 20px; }
}

/* ===== Packages: taped recipe cards ===== */
.pkgs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.pkgs { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px 6px 30px; }
.pkg { flex: 0 0 min(280px, 78vw); scroll-snap-align: start; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 10px 18px; }
.pkg:nth-child(odd) { transform: rotate(-1.5deg); }
.pkg:nth-child(even) { transform: rotate(1.5deg); }
.pkg img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: 8px; border: 2px solid var(--ink); }
.pkg h3 { font-size: 21px; margin: 12px 6px 2px; }
.pkg p { font-size: 16px; color: var(--ink-soft); margin: 0 6px; }
.pkg .price { display: inline-block; margin: 10px 6px 0; font-family: var(--display); font-weight: 500; font-size: 15px; padding: 1px 12px; border-radius: 999px; border: 2px solid var(--ink); }
.pkg .price.free { background: var(--chef); color: var(--paper); border-color: var(--chef-deep); }

/* ===== Parents ===== */
.parents .wrap { display: grid; grid-template-columns: 1fr 0.8fr; gap: 56px; align-items: center; }
.checks { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 19px; }
.checks li::before { content: ''; flex: none; width: 26px; height: 26px; margin-top: 3px; border-radius: 8px; border: 2px solid var(--ink); background: var(--chef) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 16px no-repeat; }
.polaroid { background: var(--paper); padding: 12px 12px 44px; border: 2px solid var(--ink); border-radius: 6px; transform: rotate(2deg); box-shadow: 6px 6px 0 rgba(29, 59, 54, 0.18); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { font-family: var(--display); font-weight: 500; text-align: center; margin-top: 10px; }
@media (max-width: 880px) { .parents .wrap { grid-template-columns: 1fr; } .parents .polaroid { max-width: 360px; margin: 0 auto; } }

/* ===== Workshops band ===== */
.band { padding: 80px 0; border-block: 3px solid var(--ink); }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.band .note { background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; padding: 32px; box-shadow: 8px 8px 0 var(--ink); }
.band .note p { margin-bottom: 22px; font-size: 19px; }
.band .pics { position: relative; min-height: 380px; }
.band .pics figure { position: absolute; width: 52%; }
.band .pics figure:first-child { top: 0; right: 4%; transform: rotate(4deg); }
.band .pics figure:last-child { bottom: 0; left: 4%; transform: rotate(-5deg); }
.band .pics img { aspect-ratio: 3 / 4; }
@media (max-width: 880px) { .band .wrap { grid-template-columns: 1fr; } .band .pics { min-height: 340px; max-width: 420px; width: 100%; margin: 0 auto; } }

/* ===== FAQ ===== */
.faq { max-width: 820px; display: grid; gap: 0; border-top: 3px solid var(--ink); }
.faq details { border-bottom: 2px dashed var(--cloth); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 4px; font-family: var(--display); font-weight: 500; font-size: 21px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yolk); }
.faq details > div { padding: 0 4px 22px; color: var(--ink-soft); }

/* ===== Final call ===== */
.final { text-align: center; padding: 96px 0 104px; border-top: 3px solid var(--ink); }
.final .note { display: inline-block; background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; padding: 34px 30px; box-shadow: 8px 8px 0 var(--ink); max-width: 640px; width: 100%; position: relative; }
.final .note .duo { display: flex; justify-content: center; gap: 8px; align-items: flex-end; margin: -96px auto 8px; }
.final .note .duo .chef { width: 130px; }
.final .note .duo .bito { width: 70px; }
.final p { margin: 0 auto; }
.final .stores, .final .btn { margin-top: 22px; }
.final .stores { justify-content: center; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cfe2dd; padding: 34px 0 96px; font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Sticky mobile call to action */
.sticky-cta { position: fixed; bottom: 14px; right: 16px; left: 16px; z-index: 50; display: none; transform: translateY(160%); transition: transform 0.25s ease; }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }
@media (max-width: 760px) { .sticky-cta { display: block; } }

/* ===== Workshops page ===== */
.ws-hero { padding: 40px 0 70px; overflow: hidden; border-bottom: 3px solid var(--ink); }
.ws-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.ws-hero .menu-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { display: inline-block; font-family: var(--display); font-weight: 500; font-size: 15px; padding: 3px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); }
.tag.hot { background: var(--tomato); color: var(--paper); border-color: var(--tomato); }
.collage { position: relative; min-height: 470px; }
.collage figure { position: absolute; width: 48%; }
.collage figure img { aspect-ratio: 3 / 4; }
.collage .p1 { top: 0; right: 0; transform: rotate(5deg); animation: land 0.7s cubic-bezier(.2, .8, .3, 1.2) both 0.1s; --r: 5deg; }
.collage .p2 { top: 10%; left: 0; transform: rotate(-6deg); animation: land 0.7s cubic-bezier(.2, .8, .3, 1.2) both 0.3s; --r: -6deg; }
.collage .p3 { bottom: 0; right: 26%; transform: rotate(-1deg); width: 42%; animation: land 0.7s cubic-bezier(.2, .8, .3, 1.2) both 0.5s; --r: -1deg; z-index: 2; }
@media (max-width: 880px) { .ws-hero .wrap { grid-template-columns: 1fr; } .collage { min-height: 400px; max-width: 440px; width: 100%; margin: 0 auto; } }

.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 34px; }
.who article { display: flex; flex-direction: column; gap: 10px; }
.who figure { margin-bottom: 6px; }
.who figure img { aspect-ratio: 4 / 3; }
.who p { color: var(--ink-soft); }
.who .btn { margin-top: auto; align-self: flex-start; }
.who article:nth-child(1) figure { transform: rotate(-1.5deg); }
.who article:nth-child(2) figure { transform: rotate(1.2deg); }
.who article:nth-child(3) figure { transform: rotate(-0.8deg); }
@media (max-width: 880px) { .who { grid-template-columns: 1fr; gap: 44px; } }

/* Activities as a restaurant menu */
.menu { background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); padding: 34px clamp(20px, 4vw, 48px) 26px; max-width: 920px; margin: 0 auto; }
.menu > h2 { text-align: center; }
.menu > p.lead { text-align: center; margin: 0 auto 18px; }
.dish { padding: 20px 0; border-top: 2px dashed var(--cloth); }
.dish-head { display: flex; align-items: baseline; gap: 12px; }
.dish-head h3 { margin: 0; }
.dish-head .dots { flex: 1; border-bottom: 3px dotted var(--ink-soft); transform: translateY(-6px); min-width: 20px; }
.dish-head .for { font-family: var(--display); font-weight: 500; color: var(--tomato); white-space: nowrap; }
.dish p { color: var(--ink-soft); margin-top: 4px; }
.dish .facts { font-size: 16px; color: var(--chef-deep); font-weight: 600; margin-top: 6px; }
@media (max-width: 560px) { .dish-head { flex-wrap: wrap; } .dish-head .dots { display: none; } .dish-head h3 { white-space: normal; } }

.steps-plain { list-style: none; counter-reset: s; display: grid; gap: 14px; margin-top: 18px; }
.steps-plain li { counter-increment: s; display: flex; gap: 14px; font-size: 19px; }
.steps-plain li::before { content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--yolk); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 600; }
.happens .wrap { display: grid; grid-template-columns: 1fr 0.8fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .happens .wrap { grid-template-columns: 1fr; } .happens .polaroid { max-width: 360px; margin: 0 auto; } }

.board { columns: 3 230px; column-gap: 22px; margin-top: 30px; }
.board figure { break-inside: avoid; margin-bottom: 22px; background: var(--paper); padding: 8px; border: 2px solid var(--ink); border-radius: 6px; }
.board figure:nth-child(3n+1) { transform: rotate(-1.2deg); }
.board figure:nth-child(3n+2) { transform: rotate(1deg); }
.board img { width: 100%; border-radius: 3px; }

.facts-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 20px; max-width: 900px; }
.facts-list div { padding: 18px 0; border-top: 2px dashed var(--cloth); }
.facts-list h3 { font-size: 22px; }
.facts-list p { color: var(--ink-soft); }
@media (max-width: 760px) { .facts-list { grid-template-columns: 1fr; } }

.wa-float { position: fixed; bottom: 20px; left: 20px; z-index: 50; width: 62px; height: 62px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.wa-float svg { width: 32px; height: 32px; fill: var(--paper); }
@media (max-width: 760px) { .wa-float { display: none; } }

/* Third package card in the hero (science / STEM) */
.photo-card.c3 { top: 30%; left: 16%; width: 40%; transform: rotate(3deg); z-index: 2; }
.table-top .c3 { --r: 3deg; animation-delay: 0.35s; }

/* Small photo strip under a card's main photo */
.mini-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -2px 0 4px; }
.mini-strip img { aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 6px; }
