/* Home hub and workshops page. Brand tokens and .btn come from styles.css (the shop's design system). Mobile first. */

/* The header is the shared nav (nav.css), fixed at the top; main starts below it. */
body > main { padding-top: 88px; }

/* ---------- Home hub ---------- */
.hub-intro { text-align: center; max-width: 720px; margin: 0 auto; padding: 24px var(--gutter) 8px; }
.hub-intro .hello-mark { width: 92px; height: 92px; }
.hub-intro h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.15; margin: 10px 0 8px; }
.hub-intro p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

.hub-tiles {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 380px; /* phone: one column of slightly smaller tiles, centred */
  margin: 0 auto;
  padding: 28px var(--gutter) 20px;
}
@media (min-width: 760px) { .hub-tiles { grid-template-columns: repeat(3, 1fr); gap: 44px; max-width: 1080px; } } /* ~290px tiles (were ~340px) */

.hub-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  color: #fff;
  text-decoration: none;
  background: var(--brown-700);
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (min-width: 760px) { .hub-tile { aspect-ratio: 3 / 4; } }
.hub-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hub-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46,27,25,.82) 0%, rgba(46,27,25,.25) 45%, rgba(46,27,25,0) 70%);
}
.hub-tile .label { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 22px 24px 24px; }
.hub-tile .label strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.2; }
.hub-tile .label span { display: block; margin-top: 4px; font-family: var(--font-round); opacity: .92; }
.hub-tile .label .go { display: inline-block; margin-top: 12px; padding: 6px 16px; border-radius: 999px; background: var(--cream-50); color: var(--brown-800); font-size: .95rem; }
.hub-tile:hover, .hub-tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hub-tile:hover img, .hub-tile:focus-visible img { transform: scale(1.04); }
.hub-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .hub-tile, .hub-tile img { transition: none; } }

/* ---------- Top carousel (home) ---------- */
.hero-carousel { position: relative; max-width: 1080px; margin: 0 auto; padding: 12px var(--gutter) 0; }
.hc-track {
  position: relative;
  aspect-ratio: 4 / 3.4; /* phone: taller */
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--brown-700);
  touch-action: pan-y;
}
@media (min-width: 760px) { .hc-track { aspect-ratio: auto; height: clamp(300px, 34vw, 420px); } } /* desktop: wide and low */
.hc-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hc-slide.is-active { opacity: 1; visibility: visible; }
.hc-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.hc-slide figcaption {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding: 24px 20px 48px; text-align: center;
  background: linear-gradient(to top, rgba(46,27,25,.78) 0%, rgba(46,27,25,.2) 55%, rgba(46,27,25,0) 75%);
}
.hc-slide figcaption span {
  color: var(--cream-50); font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.8rem); line-height: 1.2; text-shadow: 0 2px 14px rgba(46,27,25,.45);
}
.hc-dots { position: absolute; inset-inline: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; }
.hc-dot {
  width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.hc-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 999px; background: rgba(255,248,243,.6);
  box-shadow: 0 1px 4px rgba(46,27,25,.4); transition: width .3s, background .3s;
}
.hc-dot[aria-current="true"]::before { width: 22px; background: var(--cream-50); }
.hc-dot:focus-visible { outline: 2px solid var(--cream-50); outline-offset: 2px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .hc-slide, .hc-dot::before { transition: none; } }
/* Focal point per slide: the pictures are portrait, so on desktop only a strip shows (Noga's pictures, #24) */
.hc-welcome img { object-position: center 33%; }
.hc-cookies img { object-position: center 62%; }
.hc-reco img { object-position: center 45%; }
.hc-workshops img { object-position: center 72%; }

/* ---------- Home: story and newsletter on the same medium brown, less space around the story (Noga, 2026-11-22) ---------- */
#story.pad, #contact.pad { padding-block: clamp(36px, 5vw, 64px); }
#story, #newsletter { background: var(--brown-600); color: var(--cream-100); }
#newsletter::before { display: none; }
#story .kicker { color: var(--rose-300); }
#story .story-copy h2 { color: var(--cream-50); }
#story .story-copy p { color: rgba(255,248,243,.9); }
#story .story-copy p a { color: var(--rose-300); }
#story .story-copy p a:hover { color: #fff; }

/* ---------- Workshops ---------- */
.ws-soon { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 48px var(--gutter); text-align: center; }
.ws-soon h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 12vw, 6.5rem); line-height: 1.1; color: var(--brown-700); margin: 0; }
.ws-hero { max-width: 820px; margin: 0 auto; padding: 24px var(--gutter) 8px; text-align: center; }
.ws-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 10px; }
.ws-hero p { color: var(--ink-soft); font-size: 1.1rem; margin: 0 auto; max-width: 620px; }
.ws-photo { max-width: 820px; margin: 28px auto 0; padding: 0 var(--gutter); }
.ws-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 25%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

.ws-cards { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 980px; margin: 0 auto; padding: 36px var(--gutter); }
@media (min-width: 760px) { .ws-cards { grid-template-columns: repeat(3, 1fr); } }
.ws-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-sm); }
.ws-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 0 0 8px; }
.ws-card p, .ws-card li { color: var(--ink-soft); margin: 0; }
.ws-card ul { margin: 0; padding-inline-start: 18px; }

.ws-cta { text-align: center; padding: 8px var(--gutter) 64px; }
.ws-cta p { color: var(--ink-soft); margin: 0 0 16px; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 10px; }
.btn-whatsapp svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Home: "שמור אותי" (add to home screen), above the footer (Noga, 2026-11-23) ---------- */
.save-me { background: var(--cream-100); text-align: center; padding-block: clamp(36px, 5vw, 56px); }
.save-me-inner { max-width: 560px; margin: 0 auto; }
.save-me p { color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 18px; }
.save-me .save-me-done { font-family: var(--font-display); font-style: italic; color: var(--accent); margin: 0; }
.save-me-btn[hidden], .save-me-done[hidden] { display: none; }

/* ---------- Shared footer ---------- */
.site-footer { background: var(--brown-800); color: var(--cream-100); text-align: center; padding: 36px var(--gutter) 28px; }
.site-footer img { display: block; width: 56px; height: 56px; margin: 0 auto; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 14px 0; font-family: var(--font-round); }
.site-footer a { color: var(--cream-100); }
.site-footer .footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0 0 12px; }
.site-footer .copy { font-size: .85rem; opacity: .75; margin: 10px 0 0; }

/* ---------- 404 ---------- */
.notfound-links { grid-template-columns: 1fr; max-width: 420px; text-align: center; }
.notfound-links .btn { width: 100%; justify-content: center; }

/* Read by screen readers and search engines, not shown. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
