/* שעון יהודי — אתר נחיתה ודפים משפטיים. צבעי האפליקציה: כחול-לילה + זהב. עברית (RTL) ואנגלית (LTR). */
:root {
  --bg: #0f1a2e;
  --bg-2: #16243d;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.10);
  --text: #f1f4fa;
  --muted: #b4bdd0;
  --gold: #d4a24a;
  --gold-2: #f0c877;
  --blue: #9cc0ff;
  --radius: 18px;
  --max: 1080px;
  --focus: #ffd34d;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f3ec;
    --bg-2: #ffffff;
    --card: #ffffff;
    --card-border: rgba(15, 26, 46, 0.12);
    --text: #15213a;
    --muted: #4d5a74;
    --gold: #9a6d1c;
    --gold-2: #c9962f;
    --blue: #1f56b0;
    --focus: #1f56b0;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* דילוג לתוכן — מופיע רק בניווט מקלדת */
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--gold-2); color: #1a1407; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ── ניווט ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--text); }
.nav .brand:hover { text-decoration: none; }
.nav .brand img {
  width: 40px; height: 40px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(212, 162, 74, .75), 0 0 14px rgba(212, 162, 74, .45);
}
.nav .links { margin-inline-start: auto; display: flex; gap: 18px; font-size: .95rem; }
.nav .links a { color: var(--muted); }
.nav .links a:hover { color: var(--text); text-decoration: none; }
.nav .tools { display: flex; gap: 8px; align-items: center; }
.nav .links + .tools { margin-inline-start: 6px; }
.nav .wrap > .tools:first-of-type { margin-inline-start: auto; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--card-border); background: var(--card);
  color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.chip-btn:hover { border-color: var(--gold); text-decoration: none; }
.chip-btn svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .nav .links { display: none; } .nav .tools { margin-inline-start: auto; } }

/* ── כפתורים ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 1.05rem;
  background: linear-gradient(135deg, #f0c877, #d4a24a);
  color: #1a1407; box-shadow: 0 8px 24px rgba(212, 162, 74, .25);
  transition: transform .15s ease, box-shadow .15s ease; border: 0; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(212, 162, 74, .35); text-decoration: none; }
.btn svg { width: 22px; height: 22px; }
.btn.ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); box-shadow: none; }

/* ── גיבור — בהשראת תמונת החנות: לילה, בית המקדש, לוגו עגול עם הילה זהובה ── */
.hero {
  position: relative; overflow: hidden; color: #f4f6fb;
  background: #0a1226 url("assets/hero-bg.jpg") center 40% / cover no-repeat;
  padding: 56px 0 48px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(6, 12, 28, .92) 0%, rgba(6, 12, 28, .78) 45%, rgba(6, 12, 28, .35) 100%);
}
[dir="ltr"] .hero::before { background: linear-gradient(to right, rgba(6, 12, 28, .92) 0%, rgba(6, 12, 28, .78) 45%, rgba(6, 12, 28, .35) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 80px; background: linear-gradient(transparent, var(--bg)); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
@media (max-width: 860px) {
  .hero { background-image: url("assets/hero-bg-sm.jpg"); }
  .hero::before { background: rgba(6, 12, 28, .8); }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .cta, .hero .brandblock { justify-content: center; }
  .hero .goldbar { margin-inline: auto; }
}
.brandblock { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.logo-glow { position: relative; flex: 0 0 auto; width: 104px; height: 104px; }
.logo-glow::before {
  content: ""; position: absolute; inset: -26px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 162, 74, .55) 0%, rgba(212, 162, 74, .18) 45%, transparent 70%);
}
.logo-glow img { position: relative; width: 104px; height: 104px; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 3px rgba(240, 200, 119, .8); }
.brandtext h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.1; margin: 0; font-weight: 800; color: #fff; }
.goldbar { width: 120px; height: 5px; border-radius: 4px; background: linear-gradient(90deg, #f0c877, #d4a24a); margin: 12px 0 8px; }
.brandtext .latin { color: #f0c877; font-weight: 600; letter-spacing: .02em; font-size: 1.05rem; }
.hero .tagline { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; margin: 6px 0 10px; color: #fff; }
.hero p.lead { font-size: 1.1rem; color: #d3d9e6; margin: 0 0 24px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .note { font-size: .88rem; color: #c3cbdb; margin-top: 12px; }
.hero .shot {
  margin: 0 auto; width: min(300px, 70vw); height: auto;
  border-radius: 28px; border: 6px solid #0b1324; box-shadow: 0 30px 60px rgba(0,0,0,.55);
}

/* ── קטעים ─────────────────────────────────────────── */
section { padding: 44px 0; }
section h2 { font-size: 1.7rem; margin: 0 0 6px; }
section p.sub { color: var(--muted); margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px 18px 16px; }
.card .ic { font-size: 1.7rem; line-height: 1; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ── צילומי מסך ────────────────────────────────────── */
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.shots img { width: 240px; height: auto; flex: 0 0 auto; border-radius: 20px; scroll-snap-align: start; border: 4px solid #0b1324; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 8px; }

/* ── שאלות ─────────────────────────────────────────── */
details { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "＋"; color: var(--gold); margin-inline-end: 8px; }
details[open] summary::before { content: "－"; }
details p { color: var(--muted); margin: 8px 0 2px; }

/* ── כותרת תחתונה ──────────────────────────────────── */
footer { border-top: 1px solid var(--card-border); padding: 28px 0 90px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer .legal { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 14px; }
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ── דפים משפטיים ──────────────────────────────────── */
.doc { padding: 40px 0 64px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: 2rem; margin: 0 0 4px; }
.doc .meta { color: var(--muted); margin-bottom: 28px; font-size: .95rem; }
.doc h2 { font-size: 1.3rem; margin: 30px 0 8px; color: var(--gold); }
.doc h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.doc ul { padding-inline-start: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: .95rem; }
.doc th, .doc td { border: 1px solid var(--card-border); padding: 8px 10px; text-align: start; vertical-align: top; }
.doc th { background: var(--card); }
.doc .box { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.doc .toc a { background: var(--card); border: 1px solid var(--card-border); border-radius: 999px; padding: 4px 12px; font-size: .9rem; color: var(--text); }
.doc .toc a:hover { border-color: var(--gold); text-decoration: none; }
.table-scroll { overflow-x: auto; }

/* ── הגדלת תמונה ───────────────────────────────────── */
img.zoom { cursor: zoom-in; transition: transform .15s ease; }
img.zoom:hover { transform: translateY(-2px); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(5, 9, 18, .9); backdrop-filter: blur(4px); }
.lightbox img { max-height: 92vh; max-width: 92vw; width: auto; height: auto; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-close, .lb-nav {
  position: fixed; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.14);
  border-radius: 999px; width: 48px; height: 48px; font-size: 26px; line-height: 48px; text-align: center;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 16px; inset-inline-end: 16px; font-size: 20px; }
.lb-prev { inset-inline-start: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-nav { width: 40px; height: 40px; line-height: 40px; } .lightbox img { max-width: 100vw; border-radius: 12px; } }

/* ── סרגל נגישות ───────────────────────────────────── */
.a11y-fab {
  position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; cursor: pointer;
  background: #1f56b0; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
}
.a11y-fab svg { width: 30px; height: 30px; }
.a11y-panel {
  position: fixed; bottom: 82px; inset-inline-start: 18px; z-index: 61;
  width: min(330px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto;
  background: #fff; color: #111; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.4);
  padding: 14px 14px 12px; font-size: 16px; line-height: 1.4;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 18px; margin: 0 0 10px; color: #111; display: flex; align-items: center; justify-content: space-between; }
.a11y-panel .x { border: 0; background: #eee; color: #111; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.a11y-panel .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-panel button.opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px;
  border: 2px solid #d6dae3; border-radius: 12px; background: #f6f7fa; color: #111;
  font: 600 14px/1.25 Arial, sans-serif; cursor: pointer; text-align: center; min-height: 72px;
}
.a11y-panel button.opt .i { font-size: 22px; line-height: 1; }
.a11y-panel button.opt[aria-pressed="true"] { border-color: #1f56b0; background: #e6efff; color: #0b2f6b; }
.a11y-panel .size { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.a11y-panel .size span { flex: 1; font: 600 14px Arial, sans-serif; }
.a11y-panel .size button { width: 40px; height: 40px; border-radius: 10px; border: 2px solid #d6dae3; background: #f6f7fa; font: 700 18px Arial; cursor: pointer; color: #111; }
.a11y-panel .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.a11y-panel .foot button { border: 0; background: #111; color: #fff; padding: 8px 12px; border-radius: 10px; font: 600 14px Arial; cursor: pointer; }
.a11y-panel .foot a { color: #1f56b0; font: 600 14px Arial; text-decoration: underline; }
.a11y-panel :focus-visible { outline: 3px solid #1f56b0; }

/* מצבי הנגישות — מוחלים על <html> */
html.a11y-contrast body, html.a11y-contrast .nav, html.a11y-contrast .card, html.a11y-contrast details,
html.a11y-contrast .doc .box, html.a11y-contrast .doc th { background: #000 !important; color: #fff !important; }
html.a11y-contrast .hero { background: #000 !important; }
html.a11y-contrast .hero::before, html.a11y-contrast .hero::after { display: none; }
html.a11y-contrast * { border-color: #fff !important; text-shadow: none !important; }
html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast .sub, html.a11y-contrast .muted,
html.a11y-contrast .card p, html.a11y-contrast details p, html.a11y-contrast footer,
html.a11y-contrast .hero p.lead, html.a11y-contrast .hero .note, html.a11y-contrast .nav .links a { color: #fff !important; }
html.a11y-contrast a, html.a11y-contrast .doc h2, html.a11y-contrast .brandtext .latin { color: #ffeb3b !important; }
html.a11y-contrast .btn { background: #ffeb3b !important; color: #000 !important; }
html.a11y-gray .nav, html.a11y-gray header, html.a11y-gray main, html.a11y-gray section, html.a11y-gray footer { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; font-weight: 700; }
html.a11y-font body, html.a11y-font button, html.a11y-font input { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: .03em; word-spacing: .12em; }
html.a11y-font p, html.a11y-font li { line-height: 1.95 !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 4l30 18-13 3 8 16-6 3-8-16-11 9z' fill='%23000' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") 4 2, auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
