/* טופז · a fan of six polish swatch sticks (each one a colour from her real work, each one a link
   to that work), her reviews as a chat thread with her real replies, and a WhatsApp "compose" bar
   as the main button. Only transform + opacity move; reduced motion = the fan is already open. */

:root {
  --bg: #F2F3F3;
  --surface: #FFFFFF;
  --ink: #131415;
  --muted: #5A5D61;
  --primary: #3A4693;
  --primary-ink: #FFFFFF;
  --soft: #FBE4D5;
  --accent: #CF4732;
  --caramel: #B1805A;
  --line: #CFD1D4;
  --focus: #3A4693;
  --radius: 22px;
  --brand-text: var(--primary);
  --k-outline-fill: var(--soft);
  --font-head: "Suez One", "Google Sans Variable", serif;
  --font-body: "Google Sans Variable", system-ui, sans-serif;
  --h1: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);
  --h2: clamp(1.875rem, 1.4rem + 2.2vw, 3rem);
}
/* The six work colours (decoration only, never text). */
.c1 { --swatch: #F5D2B4; }
.c2 { --swatch: #131415; }
.c3 { --swatch: #3A4693; }
.c4 { --swatch: #E45976; }
.c5 { --swatch: #D55544; }
.c6 { --swatch: #E7E4DB; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure, h1, h2, h3, ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: .6rem 1rem; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { max-width: 1152px; margin-inline: auto; padding-inline: 16px; }
body .k-btn { font-weight: 500; }

/* ---------- Banner + header ---------- */
.demo-banner { padding: .5rem 16px; background: var(--primary); color: var(--primary-ink); font-size: .875rem; line-height: 1.5; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header__inner { display: flex; align-items: center; gap: 24px; max-width: 1152px; height: 60px; margin-inline: auto; padding-inline: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; margin-inline-end: auto; text-decoration: none; }
.brand__name { font-family: var(--font-head); font-size: 28px; line-height: 1; }
.brand__sub { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.site-nav { display: none; }

/* ---------- Hero: the fan ---------- */
.hero { padding-block: 28px 56px; }
.hero__grid { display: grid; gap: 22px; }
.hero__grid > * { min-width: 0; }
.eyebrow { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.hero__title { margin-top: 8px; font-family: var(--font-head); font-size: var(--h1); font-weight: 400; line-height: 1.15; }
.hero__lead { margin-top: 12px; }

.fan {
  --w: 44px;
  --h: 230px;
  --ox: 22px;
  --oy: 208px;
  --px: 28px;
  --py: 272px;
  position: relative;
  width: 100%;
  max-width: 343px;
  height: 300px;
}
.stick {
  position: absolute;
  left: calc(var(--px) - var(--ox));
  top: calc(var(--py) - var(--oy));
  width: var(--w);
  height: var(--h);
  border: 1px solid var(--line);
  border-radius: 22px 22px 6px 6px;
  background:
    linear-gradient(180deg, var(--tip, var(--swatch)) 0 var(--tip-h, 0px), var(--swatch) var(--tip-h, 0px) 46%, var(--surface) 46%);
  box-shadow: -2px 2px 6px rgb(19 20 21 / .12);
  transform-origin: var(--ox) var(--oy);
  transform: rotate(var(--a));
}
.stick::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 2px;
  height: 36%;
  border-radius: 2px;
  background: rgb(255 255 255 / .4);
}
.stick--1 { --a: 8deg; --swatch: #F5D2B4; background-image: radial-gradient(circle, #B1805A 0 2.5px, transparent 3px), linear-gradient(180deg, #F5D2B4 0 46%, var(--surface) 46%); background-size: 100% 26%, auto; background-position: 0 30%, 0 0; background-repeat: no-repeat; }
.stick--2 { --a: 22deg; --swatch: #F2D6C4; --tip: #131415; --tip-h: 14px; }
.stick--3 { --a: 36deg; --swatch: #3A4693; }
.stick--4 { --a: 50deg; --swatch: #F3D3DA; --tip: #E45976; --tip-h: 18px; }
.stick--5 { --a: 64deg; --swatch: #D55544; }
.stick--6 { --a: 78deg; --swatch: #E7E4DB; background-image: linear-gradient(118deg, transparent 0 46%, #B1805A 46% 49%, transparent 49%), linear-gradient(180deg, #E7E4DB 0 46%, var(--surface) 46%); background-size: 100% 46%, auto; background-repeat: no-repeat; }
.stick:focus-visible { outline-offset: 2px; }
.fan__pin {
  position: absolute;
  left: calc(var(--px) - 8px);
  top: calc(var(--py) - 8px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--caramel);
  box-shadow: 0 0 0 3px var(--surface);
}
@media (prefers-reduced-motion: no-preference) {
  .stick { transition: transform 200ms var(--k-ease); }
  .stick:hover, .stick:focus-visible { transform: rotate(var(--a)) translateY(-10px); }
}
.legend {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  padding: 0 0 6px;
  overflow-x: auto;
  list-style: none;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
}
.legend li { display: inline-flex; align-items: center; gap: 5px; }
.legend li::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--line); border-radius: 50%; background: var(--swatch); }

/* The WhatsApp compose bar */
.hint {
  position: relative;
  width: fit-content;
  max-width: 82%;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 22px 22px 22px 6px;
  background: var(--soft);
  font-size: .9375rem;
}
.typing { display: none; }
.hero__actions { display: grid; gap: 12px; margin-top: 12px; }
.compose {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px 18px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 200ms ease;
}
.compose__text { flex: 1; color: var(--muted); font-size: 1.0625rem; font-weight: 500; }
.compose__send { --k-btn-h: 44px; flex: none; pointer-events: none; }
.compose__send .k-btn__icon { width: 20px; height: 20px; transform: scaleX(-1); }
.compose:hover { border-color: var(--primary); }
.compose:focus-visible { outline-offset: 2px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .compose:hover .compose__send .k-btn__icon { animation: k-pop 700ms var(--k-ease); }
}

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.h2 { font-family: var(--font-head); font-size: var(--h2); font-weight: 400; line-height: 1.2; }

/* צבעים */
.works { display: grid; gap: 28px; margin-top: 26px; padding: 0; list-style: none; }
.work { position: relative; scroll-margin-top: 80px; }
.work__img { --k-reveal-cover: var(--swatch); overflow: hidden; border-radius: 22px; }
.work__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.c1 .work__img img { object-position: 50% 45%; }
.c2 .work__img img { object-position: 50% 60%; }
.c3 .work__img img { object-position: 50% 55%; }
.c4 .work__img img { object-position: 40% 60%; }
.c5 .work__img img { object-position: 50% 55%; }
.c6 .work__img img { object-position: 50% 60%; }
.work__tip { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 3px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 2px 6px rgb(19 20 21 / .25); }
.work__name { margin-top: 10px; font-family: var(--font-head); font-size: 1.375rem; font-weight: 400; line-height: 1.25; }
.works__end { margin-top: 28px; color: var(--muted); }

/* שירותים */
.services { display: grid; gap: 4px; margin-top: 24px; padding: 0; list-style: none; }
.service { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.service__bottle { grid-row: span 2; width: 28px; height: 40px; color: var(--swatch); }
.service__name { font-family: var(--font-head); font-size: 1.375rem; font-weight: 400; line-height: 1.25; }
.service p { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.who { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 500; }

/* שיחות */
.chat-sec__grid { display: grid; gap: 24px; }
.chat-sec__lead { margin-top: 10px; color: var(--muted); }
.chat { max-width: 560px; padding: 0 0 12px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); overflow: hidden; }
.chat__top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-head); font-size: 1.25rem; }
.chat__top p { display: grid; line-height: 1.3; }
.chat__top span { color: var(--muted); font-size: .8125rem; }
.thread { display: grid; gap: 10px; padding: 16px 12px 4px; list-style: none; }
.msg { max-width: 82%; }
.msg p { padding: 10px 14px; font-size: 1.0625rem; line-height: 1.5; }
.msg--in { justify-self: start; }
.msg--in p { border-radius: 22px 22px 6px 22px; background: var(--surface); box-shadow: 0 1px 1px rgb(19 20 21 / .08); }
.msg--out { justify-self: end; margin-inline-end: 0; }
.msg--out p { border-radius: 22px 22px 22px 6px; background: var(--soft); }
.msg__who { display: block; margin: 3px 8px 0; color: var(--muted); font-size: .75rem; }
.chat__more { padding: 6px 14px 0; }
.k-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* איך מגיעים */
.visit { display: grid; gap: 24px; }
.minimap { display: none; }
.visit__card { padding: 24px 20px; border-radius: 22px; background: var(--surface); }
.visit__addr { margin-top: 12px; font-family: var(--font-head); font-size: 1.625rem; line-height: 1.25; }
.visit__near { color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 3px 12px; border-radius: 999px; background: var(--bg); font-size: .9375rem; font-weight: 500; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live.is-open::before { background: #097A3D; }
.hours { width: 100%; margin-top: 14px; border-collapse: collapse; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours th, .hours td { padding: 8px 0; font-weight: 400; text-align: start; }
.hours td { text-align: end; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--primary); font-weight: 600; }
.visit__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* כתבי לטופז */
.write__box { display: grid; gap: 16px; }
.compose--big { min-height: 64px; }
.compose--big .compose__text { font-size: 1.1875rem; }
.write__call { margin-top: -4px; }

/* ---------- Footer + dock ---------- */
.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .9375rem; }
.site-footer p + p { margin-top: 6px; }
.site-footer a { display: inline-block; min-height: 24px; color: var(--ink); }
.dock {
  position: fixed;
  inset-inline: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 35;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 12px 28px -14px rgb(19 20 21 / .45);
}
.dock > * { flex: 1 1 0; }
.dock.is-hidden { visibility: hidden; opacity: 0; transform: translateY(calc(100% + 24px)); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .dock { transition: transform 420ms cubic-bezier(.16, 1, .3, 1), opacity 300ms ease, visibility 0s; }
  .dock.is-hidden { transition: transform 420ms cubic-bezier(.16, 1, .3, 1), opacity 300ms ease, visibility 0s 420ms; }
}
@media (prefers-reduced-motion: reduce) { .dock.is-hidden { transform: none; } }
@media (max-width: 899px) { body { padding-bottom: 84px; } }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .site-nav { display: flex; gap: 26px; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 500; text-decoration: none; }
  .site-nav a:hover { color: var(--primary); }

  .hero { padding-block: 48px 96px; }
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: end; }
  .hero__text { grid-column: 1 / 7; grid-row: 1; }
  .hero__write { grid-column: 1 / 7; grid-row: 2; align-self: start; }
  .hero__fan { grid-column: 7 / 13; grid-row: 1 / 3; align-self: center; }
  .hero__title { font-size: 68px; }
  .fan { --w: 64px; --h: 340px; --ox: 32px; --oy: 306px; --px: 40px; --py: 420px; max-width: 520px; height: 460px; }
  .stick { border-radius: 32px 32px 8px 8px; }
  .legend { font-size: .8125rem; }

  .section { padding-block: 104px; }
  .works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work:nth-child(n + 4) { margin-top: 40px; }

  .services { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .service { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px 22px; border: 0; border-radius: 999px 999px 22px 22px; background: var(--surface); text-align: center; }
  .service__bottle { margin-bottom: 6px; }

  .chat-sec__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .chat { grid-column: 7 / 13; grid-row: 1; }
  .chat-sec__head { grid-column: 1 / 6; grid-row: 1; position: sticky; top: 100px; }

  .visit { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
  .visit__card { grid-column: 1 / 7; grid-row: 1; padding: 32px; }
  .minimap { display: block; position: relative; grid-column: 7 / 13; grid-row: 1; width: 100%; max-width: 420px; justify-self: center; }
  .minimap svg { display: block; width: 100%; height: auto; }
  .minimap span { position: absolute; padding: 2px 10px; border-radius: 999px; background: var(--surface); font-size: .875rem; font-weight: 600; }
  .minimap__mall { top: 8%; left: 6%; }
  .minimap__me { top: 80%; left: 62%; }

  .write__box { grid-template-columns: auto 1fr; align-items: center; gap: 28px; margin-inline: 16.66%; }
  .write__call { grid-column: 2; }
}

/* =====================================================================
   Motion. Hero: pure CSS from the first paint. The sticks open from 8°
   (fill: backwards, so hover can still nudge them afterwards), the pin
   locks, three "typing" dots bounce twice and give way to the bubble text.
   Below the fold: the kit reveals (curtain in each work's own colour).
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .stick { animation: fan-open 520ms cubic-bezier(.2, 1.2, .3, 1) backwards; }
  .stick--2 { animation-delay: 100ms; }
  .stick--3 { animation-delay: 140ms; }
  .stick--4 { animation-delay: 180ms; }
  .stick--5 { animation-delay: 220ms; }
  .stick--6 { animation-delay: 260ms; }
  .stick--1 { animation: none; }
  .fan__pin { animation: lock 200ms var(--k-spring) 860ms both; }

  .typing { display: inline-flex; gap: 4px; position: absolute; inset-inline-start: 16px; top: 50%; translate: 0 -50%; animation: fade-out 250ms ease 1700ms both; }
  .typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 600ms ease-in-out 2 both; }
  .typing span:nth-child(1) { animation-delay: 1100ms; }
  .typing span:nth-child(2) { animation-delay: 1220ms; }
  .typing span:nth-child(3) { animation-delay: 1340ms; }
  .hint__text { animation: fade-in 250ms ease 1700ms both; }
}
@keyframes fan-open { from { transform: rotate(8deg); } }
@keyframes lock { from { transform: scale(.6); } }
@keyframes dot { 50% { transform: translateY(-4px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

@media (forced-colors: active) {
  .stick { border-color: CanvasText; }
}

/* ---------- Accessibility statement + 404 ---------- */
.page { max-width: 720px; margin: 32px auto; padding: 28px 22px; border-radius: 22px; background: var(--surface); }
.page h1 { font-family: var(--font-head); font-size: 2.25rem; font-weight: 400; line-height: 1.2; }
.page h2 { margin-top: 24px; font-family: var(--font-head); font-size: 1.375rem; font-weight: 400; }
.page ul { padding-inline-start: 1.2em; }
.page p { margin-top: 10px; }
.page a { display: inline-block; min-height: 24px; color: var(--primary); font-weight: 600; }
@media (max-width: 760px) { .page { margin: 16px; } }
