/* ============================================================
   אלה · ביתי. טבעי. בריא.
   White page, sage green for the accents. Surfaces are separated by
   hairlines rather than tinted panels or floating shadows.
   ============================================================ */

:root {
  accent-color: var(--brand); /* radios and checkboxes in the site green */
  --bg:        #ffffff;
  --bg-warm:   #f4f5f1;
  --panel:     #f2f3ee;
  --panel-2:   #f6f7f3;
  --ink:       #343a2f;
  --ink-soft:  #545c4b;
  --brand:     #46543b;
  --brand-lt:  #5a6b4c;
  --line:      rgba(52, 58, 47, .13);
  --wa:        #2aa81a;

  --r:    14px;
  --r-lg: 22px;
  --shadow:    0 2px 10px rgba(63,56,51,.07);
  --shadow-lg: 0 18px 44px rgba(63,56,51,.16);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Assistant', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }

a { color: inherit; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--r) 0;
}
.skip:focus { inset-inline-start: 0; }

/* the masthead shows the name; this keeps it as the page heading */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

.kicker {
  margin: 0 0 2px;
  font-size: clamp(15px, 2.4vw, 19px);
  font-weight: 300;
  letter-spacing: .34em;
  color: var(--ink-soft);
}

/* ---------- masthead + nav ---------- */

/* The name sits centred above the menu, the way Ella liked it on
   adama-soapery.com. Only the menu row is sticky: the tall name row scrolls
   away so it doesn't eat the screen while browsing. */
.masthead { background: var(--bg); text-align: center; padding: 26px 16px 8px; }
.masthead__brand { display: inline-grid; justify-items: center; text-decoration: none; color: var(--brand); }
.masthead__name {
  font-size: clamp(56px, 7vw, 88px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1;
}
.masthead__tag {
  margin-top: 6px; font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700; letter-spacing: .04em; line-height: 1.2;
}

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(255,255,255,.96); }

/* Three columns so the links stay centred on the page regardless of the
   WhatsApp button's width. In RTL the last column is the left one. */
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 34px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px;
}

/* the name moves into the bar only on mobile, where there is no masthead */
.nav__brand { display: none; text-decoration: none; text-align: center; color: var(--brand); }
.nav__name { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.nav__tag { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; }

.nav__links { grid-column: 2; display: flex; justify-content: center; gap: clamp(14px, 2vw, 28px); }
.nav__links a {
  text-decoration: none; font-size: 15.5px; font-weight: 600; color: var(--ink-soft);
  padding: 5px 0; position: relative; transition: color .2s;
}
.nav__links a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px;
  background: var(--brand); transform: scaleX(0); transition: transform .28s var(--ease);
}
.nav__links a:hover { color: var(--brand); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a { white-space: nowrap; }

/* Small laptops / tablets in landscape: the nine links don't fit centred
   beside the buttons, so give them the row, slightly smaller, and show the
   WhatsApp button as an icon only. */
@media (min-width: 901px) and (max-width: 1180px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links { grid-column: 1; gap: 14px; }
  .nav__links a { font-size: 14.5px; }
  .nav__end { grid-column: 2; }
  .nav__wa { padding: 9px 11px; }
  .nav__wa span { display: none; }
}

.nav__wa {
  grid-column: 3; justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; text-decoration: none;
  padding: 9px 17px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.nav__wa:hover { background: var(--brand-lt); transform: translateY(-1px); }
.nav__wa svg { width: 16px; height: 16px; fill: currentColor; }

.nav__burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; justify-self: start; }
.nav__burger span {
  display: block; width: 23px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav__burger span + span { margin-top: 5px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero { background: var(--bg); }

/* The columns are capped rather than left to fill the screen. Both images are
   portrait (1100x1467); in a column that grows to ~1280px on an ultrawide
   display, `cover` scales them to that width and then crops ~70% of the
   height, which is what made the soap look enormously zoomed. Capping the
   grid keeps the column near the image's own proportions. */
.hero__inner {
  max-width: 1700px; margin-inline: auto;
  display: grid; grid-template-columns: 1.02fr .98fr;
  /* Keep the fold shallow enough that the next section always peeks through,
     so a wide-but-short window still signals there is more below. */
  min-height: clamp(440px, 72vh, 660px);
}
/* The image is taken out of flow on purpose: with width/height attributes it
   has an intrinsic aspect ratio, and in normal flow that ratio — not the
   min-height above — would decide the grid row height. On a wide viewport
   that made the hero ~1340px tall and pushed everything below the fold. */
.hero__media { position: relative; overflow: hidden; min-height: 360px; }
/* the soap sits low in the source frame — bias the crop downward */
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
}

.hero__panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(38px, 6vw, 84px);
}
.hero__kicker {
  margin: 0 0 20px; font-size: 13.5px; font-weight: 600;
  letter-spacing: .2em; color: var(--brand);
}
.hero__lede { margin: 0; max-width: 40ch; font-size: clamp(19px, 2vw, 25px); line-height: 1.6; color: var(--ink); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 27px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 16px; border: 1.5px solid transparent;
  transition: all .22s var(--ease); cursor: pointer;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-lt); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { border-color: var(--brand); color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

/* ---------- story ---------- */

.story { background: var(--bg); }
.story__inner {
  max-width: 1700px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr;
}
/* same out-of-flow treatment as the hero, for the same reason */
.story__media { position: relative; overflow: hidden; min-height: 400px; }
.story__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* a cut-out portrait must not be cropped at the head or hands */
  object-fit: contain; object-position: 50% 100%;
}
.story__text { padding: clamp(38px, 6vw, 82px); align-self: center; }
.story__text h2 { font-size: clamp(34px, 4.6vw, 52px); color: var(--brand); margin-bottom: 22px; }
.story__text p { margin: 0 0 12px; line-height: 1.6; color: var(--ink); max-width: 52ch; }
.story__text b { font-weight: 700; }
.story__invite { font-weight: 600; color: var(--brand); }

/* ---------- desktop-only refinements ---------- */

/* Both only apply above the 900px breakpoint; below it the sections collapse
   to one column, where an inset photo and a mirrored order would just look
   like misalignment. */
@media (min-width: 901px) {
  /* Inset the photo inside its box so it reads as a framed image rather than
     a full-bleed panel. The container clips, so the scale reveals the section
     colour evenly on all four sides. */
  .hero__media img { transform: scale(.9); }

  /* Alternate the sides: the hero's photo sits on the right, so the story
     mirrors it. In RTL, column 1 is the rightmost.
     Both need an explicit row: the media comes first in the DOM, and auto
     placement never moves backwards, so sending it to column 2 would push
     the text onto a second row instead of beside it. */
  .story__media { grid-column: 2; grid-row: 1; }
  .story__text  { grid-column: 1; grid-row: 1; }
}

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

.sec { padding: clamp(58px, 8vw, 104px) clamp(16px, 4vw, 34px); }
/* one white background throughout, so a hairline marks where sections meet */
.sec, .contact { border-top: 1px solid var(--line); }

.sec__head { max-width: var(--maxw); margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.sec__head h2 { font-size: clamp(38px, 5.5vw, 62px); color: var(--brand); margin-bottom: 16px; }
.sec__intro { margin: 0 auto; max-width: 62ch; color: var(--ink-soft); font-size: 16.5px; }

.sec__banner {
  max-width: var(--maxw); margin: 0 auto clamp(34px, 5vw, 54px);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
}
.sec__banner img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }

/* ---------- how a soap is made: Ella's own process photos ---------- */
.process__steps {
  list-style: none; padding: 0; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 28px);
  counter-reset: step;
}
.process__steps li { counter-increment: step; }
.process__steps img {
  width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r);
  background: var(--bg-warm); margin-bottom: 14px;
}
.process__steps h3 { font-size: 21px; color: var(--brand); margin: 0 0 6px; }
.process__steps h3::before { content: counter(step) ". "; color: var(--ink-soft); font-weight: 400; }
.process__steps p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

.quotes {
  max-width: 860px; margin: clamp(46px, 6vw, 72px) auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px);
}
.quotes__img {
  grid-row: span 2; width: 100%; height: 100%; min-height: 0; object-fit: cover;
  border-radius: var(--r); background: var(--bg-warm);
}
.quotes blockquote { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 22px 24px; border-inline-start: 3px solid var(--brand); background: var(--panel); border-radius: var(--r); }
.quotes p { margin: 0 0 8px; font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; color: var(--ink); line-height: 1.35; }
.quotes footer { font-size: 14.5px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .process__steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .quotes { grid-template-columns: 1fr; }
  .quotes__img { grid-row: auto; height: auto; aspect-ratio: 1; object-position: 50% 55%; }
}

/* Flex rather than an auto-fill grid: auto-fill keeps empty columns, so a
   section with 3 products (or a short last row) hugged one side instead of
   sitting centred. Cards are sized to four per row and wrap from the centre. */
.grid {
  --gap: clamp(18px, 2.4vw, 28px);
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);
}
.grid > .card { flex: 0 1 calc((100% - 3 * var(--gap)) / 4); min-width: 252px; }

/* a lone product is shown a little larger */
.grid--single > .card { flex-basis: 430px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
}

.card__media { position: relative; overflow: hidden; background: var(--bg-warm); cursor: zoom-in; }
.card__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.card__badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; letter-spacing: .04em;
}

.card__body { padding: 20px 21px 22px; display: flex; flex-direction: column; flex: 1; gap: 9px; }
.card__name { font-size: 21px; font-weight: 800; color: var(--brand); line-height: 1.24; }
.card__weight { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; letter-spacing: .02em; }
.card__desc { margin: 0; font-size: 15.2px; color: var(--ink); line-height: 1.62; }
.card__ing {
  margin: 0; font-size: 13.8px; color: var(--ink-soft); line-height: 1.6;
  padding-top: 9px; border-top: 1px solid var(--line);
}
.card__ing b { font-weight: 700; color: var(--ink); }
.card__note { margin: 0; font-size: 13.2px; color: var(--ink-soft); font-style: italic; }

/* availability set from Ella's admin page */
.card__badge--oos { background: var(--ink); }
.card--oos .card__media img { filter: grayscale(.55); opacity: .78; }
.card__status {
  margin: 0; font-size: 14px; font-weight: 600; color: var(--brand);
  background: var(--panel); border-radius: 10px; padding: 7px 11px;
}

.card__benefits { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.card__benefits li { font-size: 14.2px; color: var(--ink-soft); padding-inline-start: 17px; position: relative; }
.card__benefits li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-lt);
}

.card__thumbs { display: flex; gap: 7px; }
.card__thumbs img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 9px;
  cursor: zoom-in; opacity: .82; transition: opacity .2s, transform .2s;
}
.card__thumbs img:hover { opacity: 1; transform: scale(1.06); }

.card__foot {
  margin-top: auto; padding-top: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card__price { font-size: 25px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.card__price small { font-size: 16px; font-weight: 600; }
.card__price--ask { font-size: 15.5px; font-weight: 700; color: var(--ink-soft); white-space: normal; line-height: 1.3; }

.card__prices { display: grid; gap: 4px; margin-top: auto; padding-top: 12px; }
.card__prices div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.card__prices b { font-weight: 800; font-size: 18px; }

.order {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--wa); color: #fff; text-decoration: none;
  padding: 10px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  white-space: nowrap; transition: filter .2s, transform .2s;
}
.order:hover { filter: brightness(1.09); transform: translateY(-1px); }
.order svg { width: 15px; height: 15px; fill: currentColor; }
.order--muted { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--line); }

.add {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand); color: #fff; border: 0; cursor: pointer;
  padding: 10px 16px; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 700;
  white-space: nowrap; transition: background .2s, transform .2s;
}
.add:hover { background: var(--brand-lt); transform: translateY(-1px); }
.add.is-added { background: var(--wa); }
.add:disabled { background: var(--ink-soft); opacity: .6; cursor: default; transform: none; }
.add svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- cart ---------- */

.nav__end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }

.cartbtn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: none; border: 1.5px solid var(--brand); color: var(--brand); cursor: pointer;
  transition: background .2s, color .2s;
}
.cartbtn:hover { background: var(--brand); color: #fff; }
.cartbtn svg { width: 18px; height: 18px; fill: currentColor; }
.cartbtn__badge {
  position: absolute; top: -6px; inset-inline-end: -6px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--wa); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.cartbtn__badge[hidden] { display: none; }
.cartbtn.is-bump { animation: cart-bump .45s var(--ease); }
@keyframes cart-bump { 40% { transform: scale(1.18); } }

/* phones: a pill at the opposite corner from the WhatsApp fab */
.cartfab {
  position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 70;
  display: none; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; border: 0; cursor: pointer;
  padding: 0 20px; height: 52px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
}
.cartfab svg { width: 18px; height: 18px; fill: currentColor; }

.cart {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(40, 35, 31, .5);
  visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
}
.cart.is-open { visibility: visible; opacity: 1; }
.cart__panel {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  width: min(440px, 100%); overflow-y: auto;
  background: #fff; box-shadow: var(--shadow-lg);
  padding: 22px 24px 28px;
  /* the item list scrolls on its own, so the total and the order form stay
     on screen however many products are in the cart */
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s var(--ease);
}
.cart.is-open .cart__panel { transform: none; }

.cart__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cart__head h2 { margin: 0; font-size: 24px; color: var(--brand); }
.cart__close { background: none; border: 0; font-size: 34px; line-height: 1; color: var(--ink-soft); cursor: pointer; }

.cart__empty, .cart__full, .cart__done { display: none; }
.cart[data-state="empty"] .cart__empty,
.cart[data-state="done"] .cart__done { display: block; }
.cart[data-state="full"] .cart__full { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart__empty, .cart__done { text-align: center; padding-top: 30px; }
.cart__done .btn { width: 100%; margin-top: 10px; }

.cart__lines {
  list-style: none; margin: 0; padding: 0;
  flex: 1 1 auto; min-height: 84px; overflow-y: auto; overscroll-behavior: contain;
}
.cart__total, .cart__form { flex-shrink: 0; }
.cart__total { border-top: 1px solid var(--line); }
.cart__line {
  display: grid; grid-template-columns: 64px 1fr auto; column-gap: 18px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart__line:last-child { border-bottom: 0; }
.cart__line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart__info { min-width: 0; }
.cart__info b { display: block; font-size: 15.5px; line-height: 1.3; margin-bottom: 2px; }
.cart__info span { display: block; font-size: 13.5px; color: var(--ink-soft); }
.cart__end { text-align: end; display: grid; gap: 4px; justify-items: end; }
.cart__remove { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }

.qty { display: inline-flex; align-items: center; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.qty button { width: 30px; height: 30px; background: none; border: 0; font: inherit; font-size: 18px; font-weight: 700; color: var(--brand); cursor: pointer; }
.qty input {
  width: 46px; padding: 0; border: 0; background: none; text-align: center;
  font: inherit; font-weight: 700; color: var(--ink); -moz-appearance: textfield;
}
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.cart__total { display: flex; justify-content: space-between; padding: 14px 0 6px; font-size: 18px; font-weight: 700; }
.cart__total b { font-size: 22px; font-weight: 800; }

.cart__form { display: grid; gap: 12px; margin-top: 10px; }
.field { display: grid; gap: 5px; font-size: 14.5px; font-weight: 600; }
.field small { font-weight: 400; color: var(--ink-soft); }
.field[hidden] { display: none; }
.field input, .field textarea {
  font: inherit; font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.cart__ship { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.cart__ship legend { width: 100%; padding: 0; margin-bottom: 4px; font-size: 14.5px; font-weight: 600; }
.cart__ship label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cart__pay { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.cart__send {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--wa); color: #fff; border: 0; cursor: pointer;
  padding: 14px 18px; border-radius: 999px; font: inherit; font-size: 16.5px; font-weight: 700;
  transition: filter .2s;
}
.cart__send:hover { filter: brightness(1.09); }
.cart__send svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- contact ---------- */

.contact { background: var(--bg); padding: clamp(62px, 9vw, 110px) clamp(16px, 4vw, 34px); }
.contact__inner { max-width: 780px; margin: 0 auto; text-align: center; }
.contact__inner h2 { font-size: clamp(38px, 5.5vw, 62px); color: var(--brand); margin-bottom: 20px; }
.contact__lede { margin: 0 auto 40px; max-width: 50ch; color: var(--ink-soft); font-size: 17px; }

.contact__grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  text-align: start;
}
.ccard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 17px 19px;
  text-decoration: none; display: grid; gap: 3px;
  transition: transform .22s var(--ease), box-shadow .22s;
}
a.ccard:hover { border-color: var(--brand-lt); }
a.ccard .ccard__value { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.ccard:hover .ccard__value { color: var(--brand-lt); }
.ccard--static { opacity: .9; }
.ccard__label { font-size: 12.5px; letter-spacing: .16em; color: var(--ink-soft); font-weight: 600; }
.ccard__value { font-size: 18px; font-weight: 700; color: var(--brand); direction: ltr; text-align: start; }
.ccard--static .ccard__value { direction: rtl; }

.ship {
  margin-top: 22px; text-align: start;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 17px 19px;
}
.ship__title {
  margin: 0 0 8px; font-size: 12.5px; letter-spacing: .16em;
  color: var(--ink-soft); font-weight: 600;
}
.ship__text { margin: 0; font-size: 15.5px; color: var(--ink); line-height: 1.66; }

.contact__sig { margin: 40px 0 0; color: var(--ink-soft); font-size: 15px; letter-spacing: .05em; }
/* the round mark signs off the page, centred under the signature */
.contact__logo { width: clamp(110px, 12vw, 150px); height: auto; margin: 22px auto 0; }

/* ---------- footer ---------- */

.foot {
  background: var(--bg); padding: 32px 24px; text-align: center;
  border-top: 1px solid var(--line);
}
.foot p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.foot__note { margin-top: 7px !important; font-size: 12.8px; opacity: .82; }

/* ---------- floating whatsapp ---------- */

.fab {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  transition: transform .25s var(--ease);
}
.fab:hover { transform: scale(1.09); }
.fab svg { width: 27px; height: 27px; fill: currentColor; }

/* ---------- lightbox ---------- */

.lb {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(40, 35, 31, .93);
  display: none; place-items: center; padding: 26px;
}
.lb.is-open { display: grid; }
.lb img { max-width: min(94vw, 1000px); max-height: 90vh; border-radius: 10px; object-fit: contain; }
.lb__close {
  position: absolute; top: 16px; inset-inline-end: 20px;
  background: none; border: 0; color: #fff; font-size: 42px; line-height: 1;
  cursor: pointer; opacity: .8;
}
.lb__close:hover { opacity: 1; }

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

/* On a short desktop window the panel's own padding, not min-height, sets the
   hero height. Tighten it so the next section still shows through. */
@media (min-width: 901px) and (max-height: 800px) {
  .hero__panel { padding-block: clamp(26px, 5vh, 54px); }
  .hero__lede { margin-bottom: 24px; }
}

@media (max-width: 900px) {
  /* stacked: the media needs an explicit height now that the img is absolute */
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { height: min(52vh, 420px); min-height: 0; }
  .hero__panel { padding: 38px 24px 48px; }
  .story__inner { grid-template-columns: 1fr; }
  .story__media { height: min(44vh, 360px); min-height: 0; }

  .masthead { display: none; }
  .nav__inner { grid-template-columns: 1fr auto 1fr; height: 66px; padding-block: 0; }
  .nav__burger { display: block; grid-column: 1; grid-row: 1; }
  .nav__brand { display: block; grid-column: 2; grid-row: 1; }
  .nav__wa { grid-row: 1; }
  .nav__end { grid-row: 1; }
  .cartfab.is-on { display: inline-flex; }

  .nav__links {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; gap: 0;
    background: #fff;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform .34s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__links a:last-child { border-bottom: 0; }
  /* the floating WhatsApp button already covers mobile */
  .nav__wa { display: none; }
}

/* On mobile a section with a banner reads title, photo, then text: the
   head is flattened with display: contents so its title and intro can be
   ordered around the banner. */
@media (max-width: 900px) {
  .sec:has(> .sec__banner) { display: flex; flex-direction: column; }
  .sec:has(> .sec__banner) > .sec__head { display: contents; }
  .sec:has(> .sec__banner) h2 { order: 1; text-align: center; }
  .sec:has(> .sec__banner) > .sec__banner { order: 2; width: 100%; margin-bottom: 22px; }
  .sec:has(> .sec__banner) .sec__intro { order: 3; text-align: center; margin-bottom: 34px; }
  .sec:has(> .sec__banner) > .grid { order: 4; width: 100%; }
}

/* Two products per row on phones: cards drop their minimum width and the
   text inside them steps down to fit a half-width column. */
@media (max-width: 600px) {
  .grid { --gap: 12px; }
  .grid > .card { flex-basis: calc((100% - var(--gap)) / 2); min-width: 0; }
  .grid--single > .card { flex-basis: 100%; }
  .card__body { padding: 13px 12px 14px; gap: 6px; }
  .card__name { font-size: 16.5px; }
  .card__weight { font-size: 12.5px; }
  .card__desc { font-size: 13.5px; line-height: 1.5; }
  .card__ing { font-size: 12.5px; line-height: 1.5; }
  .card__benefits li { font-size: 13px; }
  .card__thumbs img { width: 40px; height: 40px; }
  .card__price { font-size: 20px; }
  .card__prices div { font-size: 13px; }
  .card__prices b { font-size: 15px; }
  .order { padding: 9px 12px; font-size: 13.5px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .order { justify-content: center; }
  .fab { inset-block-end: 16px; inset-inline-end: 16px; }
  .cartfab { inset-block-end: 18px; inset-inline-start: 16px; }
  .add { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
}

/* The story portrait is a transparent cut-out, so it needs room beneath the
   nav and a floor to stand on rather than a cover crop. */
@media (min-width: 901px) {
  .story__media { min-height: 520px; }
}
@media (max-width: 900px) {
  .story__media { height: min(52vh, 420px); }
}

/* ==========================================================================
   Motion: a deliberately small set, each in one place.
   - hero photo: slight parallax as the page scrolls away (CSS only)
   - product cards with extra photos: second angle on mouse hover
   - "איך נולד סבון" on wide screens: photo pinned beside the steps
   - story areas (process, quotes, order photos): soft reveal on entry
   Product cards don't reveal, so browsing stays instant. Everything that
   moves is behind .motion (set by motion.js) or @supports, and all of it is
   off under prefers-reduced-motion.
   ========================================================================== */

/* Hero, on load: the photo settles from slightly close (it is visible from
   the first frame, so the largest paint isn't delayed), then the text
   follows. While scrolling away the photo drifts a little. `scale` and
   `translate` are separate properties, so the two animations compose. */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { scale: 1.1; animation: hero-settle 1.8s var(--ease) both; }
  @keyframes hero-settle { from { scale: 1.2; } to { scale: 1.1; } }

  .hero__kicker, .hero__lede { animation: hero-text .9s var(--ease) both; }
  .hero__kicker { animation-delay: .35s; }
  .hero__lede   { animation-delay: .55s; }
  @keyframes hero-text { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

  @supports (animation-timeline: scroll()) {
    .hero__media img {
      animation: hero-settle 1.8s var(--ease) both, hero-drift linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 100vh;
    }
    @keyframes hero-drift { from { translate: 0 0; } to { translate: 0 4.5%; } }
  }
}

.card__alt { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card__alt { transition: opacity .45s var(--ease); }
  .card__media:hover .card__alt { opacity: 1; }
}

/* soft reveal; motion.js adds .rv and then .in */
.motion .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion .rv.in { opacity: 1; transform: none; }

/* pinned process, wide screens */
.process__stage { display: none; }
@media (min-width: 901px) {
  .motion .process__wrap {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px);
  }
  .motion .process__stage {
    display: block; position: sticky; top: 110px;
    height: min(72vh, 620px); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-warm);
  }
  .motion .process__stage img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 1.4s var(--ease);
  }
  .motion .process__stage img.on { opacity: 1; transform: none; }
  .motion .process__steps { display: block; max-width: none; padding: 14vh 0 22vh; }
  .motion .process__steps li {
    min-height: 52vh; display: flex; flex-direction: column; justify-content: center;
    opacity: .28; transition: opacity .45s ease;
  }
  .motion .process__steps li.on { opacity: 1; }
  .motion .process__steps li img { display: none; }
  .motion .process__steps h3 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 10px; }
  .motion .process__steps p { font-size: 18px; max-width: 34ch; }
}

/* Hero rotation (motion.js). The extra photos are hidden until the script
   loads them, so without it the hero is the single basket photo. */
.hero__slide { opacity: 0; }
.motion .hero__media img { transition: opacity 1.4s ease; }
.motion .hero__media img:not(.is-on) { opacity: 0; }
.motion .hero__media img.is-on { opacity: 1; }
.hero__pause {
  position: absolute; inset-inline-end: 14px; bottom: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255,255,255,.85); color: var(--ink);
}
.hero__pause:hover { background: #fff; }
.hero__pause svg { width: 16px; height: 16px; fill: currentColor; }

/* Product photos: a slow, small zoom inside the frame on mouse hover - the
   usual shop-grid cue that the photo can be opened. No card lift or shadow,
   only the photo moves. Mouse devices only; off under reduced motion. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card__media img { transition: transform .8s var(--ease), opacity .45s var(--ease); }
  .card__media:hover img { transform: scale(1.05); }
}

/* ---------- links to the product pages and policies ---------- */

.card__name a { color: inherit; text-decoration: none; }
.card__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart__send { text-decoration: none; }
.foot__note a, .ship__text a { color: var(--brand); font-weight: 600; text-decoration: none; }
.foot__note a:hover, .ship__text a:hover { text-decoration: underline; }
