/* ===== עיצוב משותף לכל עמודי האתר =====
   הצבעים והפונטים של האתר. התפריט העליון, הכפתורים, האנימציות והחצים.
   כל האנימציות נכבות אצל מי שביקשה בטלפון/במחשב "הפחתת תנועה". */

:root {
  --green: #1F4A3C;
  --green-dark: #15362B;
  --mid: #4A6B5C;
  --sage: #A9C2B4;
  --mint: #EDF4EF;
  --mint2: #DDEDE4;
  --line: #DCE6DF;
  --paper: #FBFBF8;
  --pink: #F8EDF0;
  --pink-line: #EEDEE3;
  --rose: #B25E79;
  --rose-dark: #6B2B3F;
  --ink: #1B2320;
  --text: #4F5A54;
  --muted: #55605A;
  --head-h: 64px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: var(--mint); color: var(--ink); font-family: Heebo, system-ui, sans-serif; }
* { box-sizing: border-box; }

/* ---------- התפריט העליון ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 244, 239, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 24px -22px rgba(31, 74, 60, .6); }
.site-head .in {
  max-width: 1120px; margin: 0 auto; height: var(--head-h);
  padding: 0 20px; display: flex; align-items: center; gap: 16px;
}
.site-head .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.site-head .brand img { width: 38px; height: 38px; border-radius: 50%; display: block; transition: transform .3s; }
.site-head .brand:hover img { transform: rotate(-8deg) scale(1.05); }
.site-head .brand span { font-weight: 800; font-size: 15px; color: var(--green); }
.site-head nav.pills { flex: 1; display: flex; justify-content: center; gap: 4px; }
.site-head nav.pills a {
  position: relative; font-size: 14px; font-weight: 600; color: #3C5B4F; text-decoration: none;
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.site-head nav.pills a::after {
  content: ""; position: absolute; right: 12px; left: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--rose); transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.site-head nav.pills a:hover { color: var(--green); background: var(--paper); }
.site-head nav.pills a:hover::after, .site-head nav.pills a.on::after { transform: scaleX(1); }
.site-head nav.pills a.on { color: var(--green); }
.site-head .buyer {
  flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--green); text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  transition: background-color .2s, border-color .2s;
}
.site-head .buyer:hover { background: var(--mint2); border-color: var(--sage); }
.site-head details.menu { display: none; position: relative; margin-right: auto; }
.site-head details.menu summary {
  list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); display: flex; align-items: center; justify-content: center;
}
.site-head details.menu summary::-webkit-details-marker { display: none; }
.site-head details.menu nav {
  position: absolute; left: 0; top: 50px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 6px; display: flex; flex-direction: column; min-width: 210px; box-shadow: 0 18px 36px -20px rgba(31, 74, 60, .6);
}
.site-head details.menu nav a { padding: 11px 14px; font-size: 16px; font-weight: 600; color: #2C4136; border-radius: 10px; text-decoration: none; }
.site-head details.menu nav a:hover, .site-head details.menu nav a.on { background: var(--mint); color: var(--green); }
.site-head details.menu nav hr { border: 0; border-top: 1px solid var(--line); margin: 4px 8px; }
@media (max-width: 860px) {
  .site-head nav.pills, .site-head .buyer { display: none; }
  .site-head details.menu { display: block; }
}

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--green); color: #EAF3EC; font: 700 16px Heebo, sans-serif;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  box-shadow: 0 0 0 0 var(--rose);
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn:hover { color: #fff; background: var(--green-dark); transform: translate(3px, -3px); box-shadow: -4px 4px 0 0 var(--rose); }
.btn.light { background: var(--paper); color: var(--green); }
.btn.light:hover { background: #fff; color: var(--green); box-shadow: -4px 4px 0 0 var(--sage); }
.btn .arr { display: inline-block; transition: transform .2s; }
.btn:hover .arr { transform: translateX(-4px); }
.btn.down:hover .arr { transform: translateY(3px); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* ---------- כניסה בגלילה ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }

/* ---------- מרקר ---------- */
.mark {
  background-image: linear-gradient(transparent 52%, rgba(178, 94, 121, .28) 52%, rgba(178, 94, 121, .28) 92%, transparent 92%);
  background-repeat: no-repeat; background-size: 0% 100%; background-position: right;
  transition: background-size 1.1s cubic-bezier(.6, .1, .2, 1) .35s;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.in .mark, .mark.in { background-size: 100% 100%; }

/* ---------- חצים מצוירים ---------- */
.arrow { position: absolute; pointer-events: none; overflow: visible; color: var(--rose); }
.arrow path { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.arrow .body { stroke-dasharray: var(--len, 1600); stroke-dashoffset: var(--len, 1600); transition: stroke-dashoffset 1.6s cubic-bezier(.5, .1, .3, 1); }
.arrow .head { opacity: 0; transition: opacity .25s 1.5s; }
.arrow.in .body { stroke-dashoffset: 0; }
.arrow.in .head { opacity: 1; }

/* ---------- כפתור "למעלה" ---------- */
.to-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--green); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -16px rgba(31, 74, 60, .7);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background-color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--mint2); }

/* ---------- תחתית ---------- */
.site-foot { background: var(--green); color: #DDEDE4; margin-top: 14px; }
.site-foot .in { max-width: 1120px; margin: 0 auto; padding: 38px 20px 30px; display: flex; flex-wrap: wrap; gap: 22px 30px; align-items: center; justify-content: space-between; }
.site-foot .who { display: block; line-height: 0; }
.site-foot .who img { height: 52px; width: auto; display: block; transition: transform .3s; }
.site-foot .who:hover img { transform: rotate(-2deg) scale(1.03); }
.site-foot .social { display: flex; gap: 10px; }
.site-foot .social a {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); color: #EAF3EC; transition: background-color .2s, transform .2s, color .2s;
}
.site-foot .social a:hover { background: var(--rose); color: #fff; transform: translateY(-3px); }
.site-foot .social svg { width: 21px; height: 21px; }
.site-foot .legal { width: 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--sage); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; }
.site-foot .legal a { color: #DDEDE4; text-decoration: none; }
.site-foot .legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- תגובה לעכבר בעמודים הפנימיים ---------- */
.inner a[style*="border-radius: 999px"][style*="background: #1F4A3C"] { transition: transform .2s, box-shadow .2s, background-color .2s; }
.inner a[style*="border-radius: 999px"][style*="background: #1F4A3C"]:hover { transform: translate(3px, -3px); box-shadow: -4px 4px 0 0 var(--rose); background: var(--green-dark) !important; color: #fff !important; }
.inner a[style*="border-radius: 16px"], .inner a[style*="border-radius: 20px"] { transition: transform .2s, box-shadow .2s; }
.inner a[style*="border-radius: 16px"]:hover, .inner a[style*="border-radius: 20px"]:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(31, 74, 60, .55); }
.inner .lift { transition: transform .25s, box-shadow .25s; }
.inner .lift:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(31, 74, 60, .5); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mark { background-size: 100% 100%; transition: none; }
  .arrow .body { stroke-dashoffset: 0; transition: none; }
  .arrow .head { opacity: 1; transition: none; }
  .btn, .btn:hover { transform: none; transition: none; }
}

/* ---------- עמודים פנימיים: התפריט והתחתית החדשים מחליפים את הישנים ---------- */
.inner, .inner body { height: auto !important; }
.inner #dc-root, .inner #dc-root > .sc-host { height: auto !important; }
.inner #dc-root footer { display: none !important; }
.inner #dc-root a[href="index.html"]:has(> img[src="images/avatar.png"]) { display: none !important; }
