/* מאפיית שקד
   palette: crust (ink) · almond-blossom white (page) · kraft (paper bag) · blossom pink · leaf green
   type: Karantina for display, Assistant for everything else */

:root {
  --ink: #2E1F16;
  --ink-soft: #5B4636;
  --page: #FCF9F8;
  --kraft: #D2AC7C;
  --kraft-deep: #A97E4E;
  --kraft-light: #E6CCA8;
  --blossom: #E9B6B2;
  --leaf: #2F6B45;
  --leaf-deep: #245536;
  --paper: #FFFFFF;
  --line: rgba(46, 31, 22, .14);

  --display: 'Karantina', 'Assistant', system-ui, sans-serif;
  --body: 'Assistant', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
p { margin: 0; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 16px; inset-block-start: -60px;
  background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 8px; z-index: 20;
}
.skip:focus { inset-block-start: 12px; }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 18px/1 var(--body); text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--wa {
  background: var(--leaf); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(36, 85, 54, .55);
}
.btn--wa:hover { background: var(--leaf-deep); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 12px 22px -8px rgba(36, 85, 54, .6); }

.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--page); }

.btn--sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn--sm svg { width: 20px; height: 20px; }

/* ---------- header ---------- */

.top {
  position: sticky; inset-block-start: 0; z-index: 10;
  background: rgba(252, 249, 248, .92);
  border-block-end: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .top { backdrop-filter: blur(8px); } }

.top__row { display: flex; align-items: center; gap: 32px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; color: var(--kraft-deep); }
.brand__name { font: 700 32px/1 var(--display); padding-block-start: 4px; }

.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 17px; color: var(--ink-soft); padding-block: 6px; background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 2px; transition: background-size .2s var(--ease), color .2s; }
.nav a:hover { color: var(--ink); background-size: 100% 2px; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 96px) var(--section); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.eyebrow { font-weight: 700; font-size: 16px; color: var(--kraft-deep); margin-block-end: 12px; }

.hero__title {
  margin: 0;
  font: 700 clamp(88px, 15vw, 184px)/.86 var(--display);
  color: var(--ink);
}

.hero__lead { margin-block-start: 28px; max-width: 30ch; font-size: clamp(19px, 2vw, 22px); color: var(--ink-soft); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }

.status { display: inline-flex; align-items: center; gap: 10px; margin-block-start: 24px; font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.status[hidden] { display: none; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--kraft-deep); }
.status.is-open .status__dot { background: var(--leaf); box-shadow: 0 0 0 4px rgba(47, 107, 69, .16); }
.status.is-open { color: var(--leaf-deep); }

/* the kraft paper bag with the stamp: the page's signature */
.bag { position: relative; justify-self: center; width: min(100%, 380px); }
.bag__body {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(90deg, rgba(0,0,0,.06), transparent 12% 88%, rgba(0,0,0,.08)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 5px),
    var(--kraft);
  border-radius: 6px 6px 10px 10px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.35) inset,
    0 30px 50px -28px rgba(46, 31, 22, .55),
    0 12px 20px -14px rgba(46, 31, 22, .35);
  display: grid; place-items: center; align-content: center; gap: 18px;
  transform: rotate(-3deg);
}
/* the zigzag cut at the top of the bag */
.bag__body::before {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: -11px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12'%3E%3Cpath d='M0 12 8 0l8 12Z' fill='%23D2AC7C'/%3E%3C/svg%3E") 0 0 / 16px 12px repeat-x;
}
/* a fold line across the bag */
.bag__body::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: 16%;
  height: 1px; background: rgba(46, 31, 22, .14); box-shadow: 0 1px 0 rgba(255,255,255,.25);
}

.stamp { width: 68%; color: var(--ink); --almond-vein: var(--kraft); }
.stamp svg { width: 100%; height: auto; overflow: visible; }
.stamp__line { fill: none; stroke: currentColor; stroke-width: 2.5; }
.stamp__ring { font: 700 30px var(--display); fill: currentColor; direction: ltr; }
.stamp__ring--small { font-size: 22px; }

.bag__note {
  font: 400 34px/1 var(--display); color: var(--ink);
  background: var(--blossom); padding: 8px 18px 4px; border-radius: 4px;
  transform: rotate(4deg);
  box-shadow: 0 6px 12px -8px rgba(46, 31, 22, .5);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise .7s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: .06s; }
  .hero__text > :nth-child(3) { animation-delay: .12s; }
  .hero__text > :nth-child(4) { animation-delay: .18s; }
  .bag__body { animation: drop .9s var(--ease) .15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes drop { from { opacity: 0; transform: rotate(-7deg) translateY(24px); } }

/* ---------- sections ---------- */

.section-title { margin: 0; font: 700 clamp(56px, 7vw, 88px)/.9 var(--display); color: var(--ink); }

/* about */
.about { padding-block: var(--section); background: var(--ink); color: var(--page); }
.about .section-title { color: var(--kraft); }
.about__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.about__text { display: grid; gap: 18px; max-width: 60ch; color: rgba(252, 249, 248, .82); font-size: 19px; line-height: 1.7; }
.about__lead { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.45; font-weight: 700; color: var(--page); }

/* products: a shelf, not a card grid */
.products { padding-block: var(--section); }
.products__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-block-end: 40px; }
.products__sub { font-size: 19px; color: var(--ink-soft); }

.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-block-start: 2px solid var(--ink); }
.shelf__item {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  padding: 32px 0; border-block-end: 1px dashed rgba(46, 31, 22, .35);
}
.shelf__item:nth-child(odd) { padding-inline-end: clamp(20px, 4vw, 48px); border-inline-end: 1px dashed rgba(46, 31, 22, .35); }
.shelf__item:nth-child(even) { padding-inline-start: clamp(20px, 4vw, 48px); }
.shelf__icon { width: 64px; height: 64px; color: var(--kraft-deep); }
.shelf__name { margin: 0 0 6px; font: 700 clamp(40px, 4.4vw, 52px)/.95 var(--display); }
.shelf__desc { color: var(--ink-soft); max-width: 38ch; }

/* visit: receipt + contact */
.visit { padding-block: var(--section); background: var(--kraft-light); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }

.receipt {
  --tooth: 10px;
  position: relative;
  background: var(--paper);
  padding: 36px 32px 40px;
  box-shadow: 0 24px 40px -26px rgba(46, 31, 22, .55), 0 2px 6px rgba(46, 31, 22, .08);
  transform: rotate(1.5deg);
  font-variant-numeric: tabular-nums;
}
/* torn, zigzag top and bottom edges */
.receipt::before, .receipt::after {
  content: ""; position: absolute; inset-inline: 0; height: var(--tooth);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Cpath d='M0 10 10 0l10 10Z' fill='%23fff'/%3E%3C/svg%3E") 0 0 / calc(var(--tooth) * 2) var(--tooth) repeat-x;
}
.receipt::before { inset-block-start: calc(var(--tooth) * -1 + 1px); }
.receipt::after { inset-block-end: calc(var(--tooth) * -1 + 1px); transform: scaleY(-1); }

.receipt__shop { text-align: center; font: 700 30px/1 var(--display); }
.receipt__title { margin: 4px 0 20px; text-align: center; font-size: 15px; font-weight: 700; color: var(--ink-soft); padding-block-end: 16px; border-block-end: 2px dashed var(--line); }

.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hours li { display: flex; align-items: baseline; gap: 12px; padding: 7px 10px; border-radius: 6px; font-size: 18px; }
.hours li > span:first-child { flex: 1; }
.hours__time { direction: ltr; unicode-bidi: isolate; font-weight: 700; }
.hours li[data-day="6"] .hours__time { color: var(--ink-soft); font-weight: 600; }
.hours li.is-today { background: var(--blossom); font-weight: 700; }
.hours li.is-today > span:first-child::after { content: " · היום"; font-weight: 600; }

.receipt__foot { margin-block-start: 20px; padding-block-start: 16px; border-block-start: 2px dashed var(--line); text-align: center; font-size: 15px; color: var(--ink-soft); }

.contact__list { margin: 28px 0 0; display: grid; gap: 20px; }
.contact__list div { display: grid; gap: 2px; }
.contact__list dt { font-size: 15px; font-weight: 700; color: var(--kraft-deep); }
.contact__list dd { margin: 0; font-size: clamp(22px, 2.4vw, 26px); font-weight: 700; }
.contact__list dd a { text-decoration: none; }
.contact__list dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__list .ltr { color: var(--ink); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
.contact__nav { margin-block-start: 20px; font-size: 16px; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
.contact__nav a { font-weight: 700; color: var(--ink); text-underline-offset: 4px; }

/* footer */
.foot { background: var(--ink); color: var(--page); padding-block: 36px; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand--foot { color: var(--page); }
.brand--foot .brand__mark { color: var(--kraft); }
.foot__meta { font-size: 15px; color: rgba(252, 249, 248, .7); }

/* floating WhatsApp: phones only */
.wa-float { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav { display: none; }
  .top__row { justify-content: space-between; min-height: 64px; }
  .brand__name { font-size: 28px; }

  .hero__grid { grid-template-columns: 1fr; }
  .bag { width: min(60%, 260px); order: -1; margin-block-end: 8px; }
  .hero__lead { max-width: none; }

  .about__grid { grid-template-columns: 1fr; }

  .shelf { grid-template-columns: 1fr; }
  .shelf__item:nth-child(odd), .shelf__item:nth-child(even) { padding-inline: 0; border-inline-end: 0; }

  .visit__grid { grid-template-columns: 1fr; }
  .receipt { width: min(100%, 420px); margin-inline: auto; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .top .btn--sm { display: none; }

  .hero { padding-block-start: 40px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .contact__actions .btn { flex: 1 1 100%; }

  .shelf__item { grid-template-columns: 52px 1fr; gap: 16px; padding-block: 24px; }
  .shelf__icon { width: 52px; height: 52px; }

  .receipt { padding-inline: 22px; }

  .wa-float {
    position: fixed; inset-inline: 16px; inset-block-end: 16px; z-index: 15;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; border-radius: 999px;
    background: var(--leaf); color: #fff; text-decoration: none; font-weight: 700; font-size: 18px;
    box-shadow: 0 14px 28px -12px rgba(36, 85, 54, .7), 0 2px 6px rgba(0,0,0,.12);
    transform: translateY(0); transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .wa-float svg { width: 22px; height: 22px; }
  .wa-float.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
  .foot { padding-block-end: 100px; }
}
