/* =========================================================
   מחברת שער ושרש — Landing page
   Dark navy + gold luxury theme (RTL / Hebrew)
   ========================================================= */

:root {
  /* Backgrounds */
  --bg: #0e1220;
  --bg-2: #131829;
  --surface: #1a2035;
  --surface-2: #212a45;

  /* Gold accents (from the book cover) */
  --gold: #d9b45a;
  --gold-2: #e8c874;
  --gold-light: #f3e2b0;
  --gold-deep: #b8934a;

  /* Text */
  --text: #f4efe2;
  --text-muted: #a9a998;
  --text-dim: #7f8196;

  /* Lines */
  --border: rgba(217, 180, 90, 0.18);
  --border-strong: rgba(217, 180, 90, 0.38);

  /* Effects */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 24px 70px -22px rgba(217, 180, 90, 0.35);
  --ring: 0 0 0 3px rgba(232, 200, 116, 0.55);

  --container: 1180px;
  --header-h: 72px;

  --ff-head: "Frank Ruhl Libre", "Times New Roman", serif;
  --ff-body: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(217, 180, 90, 0.10), transparent 60%),
    radial-gradient(760px 480px at 10% 8%, rgba(80, 110, 190, 0.10), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

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

a { color: var(--gold-2); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--ff-head);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .5em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

section { padding: 96px 0; }

/* Focus visibility for keyboard users */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  right: 12px;
  top: -100px;
  background: var(--gold);
  color: #14171f;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 2000;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Section titles ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 600;
  letter-spacing: .12em;
  font-size: .82rem;
  color: var(--gold-2);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(217, 180, 90, 0.06);
  margin-bottom: 18px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head h2 .accent {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #17130a;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 28px 80px -20px rgba(217,180,90,.5); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(217, 180, 90, 0.10); border-color: var(--gold); }
.btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(14, 18, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.35rem;
}
.brand .mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #17130a;
  font-size: 1.15rem;
  box-shadow: 0 6px 18px -6px rgba(217,180,90,.6);
}
.brand small { display: block; font-family: var(--ff-body); font-weight: 500; font-size: .68rem; color: var(--text-dim); letter-spacing: .04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .98rem;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 46px; height: 46px;
  cursor: pointer;
  color: var(--text);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 90px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(217, 180, 90, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .86rem; font-weight: 600;
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold-2); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.01em;
}
.hero h1 .accent {
  background: linear-gradient(180deg, var(--gold-light) 10%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 18px 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 2rem;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stats .stat span { color: var(--text-dim); font-size: .9rem; }

/* 3D book asset */
.book-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1600px;
}
.book-glow {
  position: absolute;
  width: 240px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,180,90,.30), transparent 66%);
  filter: blur(30px);
  z-index: 0;
}
.book-3d {
  position: relative;
  z-index: 1;
  width: clamp(150px, 24vw, 220px);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.6));
  animation: floaty 6s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-16px) rotate(.4deg); }
}
.book-shadow {
  position: absolute;
  bottom: 8%;
  width: 150px; height: 26px;
  background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card .ic {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(217, 180, 90, 0.10);
  border: 1px solid var(--border-strong);
  color: var(--gold-2);
  margin-bottom: 18px;
}
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.28rem; }
.card p { color: var(--text-muted); margin: 0; font-size: 1rem; }

/* ---------- Topics ---------- */
.topics-section { background: rgba(255,255,255,0.012); border-block: 1px solid var(--border); }
.topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.topic {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.topic .tick {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #17130a;
}
.topic .tick svg { width: 18px; height: 18px; }
.topic span { font-weight: 500; }

/* ---------- Demo gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.page-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
  aspect-ratio: 1123 / 1567;
}
.page-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.page-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.page-card figcaption {
  position: absolute;
  inset-inline: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(0deg, rgba(10,12,20,.92), transparent);
  color: var(--gold-light);
  font-weight: 600;
  font-size: .95rem;
  display: flex; align-items: center; gap: 8px;
}
.page-card .zoom {
  position: absolute; top: 12px; inset-inline-start: 12px;
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(14,18,32,.7);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center; color: var(--gold-2);
  opacity: 0; transition: opacity .2s;
}
.page-card:hover .zoom { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(6, 8, 14, 0.92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
  border: 1px solid var(--border-strong);
}
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute;
  background: rgba(26,32,53,.85);
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
}
.lightbox .lb-close { top: 20px; inset-inline-end: 20px; }
.lightbox .lb-prev { inset-inline-end: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { inset-inline-start: 22px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 24px; height: 24px; }

/* ---------- Shops ---------- */
.shops-section { background: rgba(255,255,255,0.012); border-block: 1px solid var(--border); }
.shops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.shop {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.shop:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.shop .shop-city {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-2); font-weight: 600; font-size: .82rem;
  margin-bottom: 10px;
}
.shop .shop-city svg { width: 16px; height: 16px; }
.shop h3 { font-size: 1.22rem; margin-bottom: 6px; }
.shop p { color: var(--text-muted); margin: 0 0 14px; font-size: .96rem; }
.shop a.shop-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .95rem;
}
.shop a.shop-link svg { width: 16px; height: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(217,180,90,.14), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 54px 0 40px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 34px;
}
.footer-grid h4 { color: var(--gold-light); font-family: var(--ff-body); font-size: 1rem; margin: 0 0 14px; }
.footer-grid p { color: var(--text-muted); margin: 0 0 10px; font-size: .96rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--gold-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--text-dim); font-size: .88rem;
}

/* ---------- Floating email button ---------- */
.email-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 950;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #17130a;
  box-shadow: 0 18px 40px -12px rgba(217,180,90,.55);
  border: 2px solid rgba(255,255,255,.85);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease;
}
.email-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 24px 55px -12px rgba(217,180,90,.7); }
.email-fab svg { width: 24px; height: 24px; }
.email-fab .label { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .book-stage { order: -1; margin-bottom: 10px; }
  .cards, .shops, .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--header-h); inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(14,18,32,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 18px 20px;
    gap: 2px;
  }
  .nav-links.open a { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
  .nav-links.open .nav-cta-mobile { display: block; margin-top: 10px; }
  section { padding: 68px 0; }
}
@media (max-width: 560px) {
  .cards, .shops, .gallery, .topics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .email-fab .label { display: none; }
  .email-fab { padding: 14px; }
  .cta-band { padding: 40px 22px; }
}

/* ---------- Footer privacy button + FAB clearance ---------- */
.site-footer { padding-bottom: 120px; } /* keep footer-bottom clear of the email button */
.footer-privacy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(217, 180, 90, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--gold-2);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .88rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.footer-privacy-btn:hover { background: rgba(217, 180, 90, 0.16); border-color: var(--gold); transform: translateY(-1px); }
.footer-privacy-btn svg { width: 16px; height: 16px; }

/* ---------- Cookie consent ---------- */
.cookie-consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1600;
  display: flex;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
}
.cookie-consent[hidden] { display: none; }
.cookie-card {
  pointer-events: auto;
  width: 100%;
  max-width: 640px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.75);
  padding: 24px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.cookie-consent.show .cookie-card { transform: translateY(0); opacity: 1; }
.cookie-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.cookie-ic {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(217, 180, 90, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--gold-2);
}
.cookie-ic svg { width: 26px; height: 26px; }
.cookie-head h2 { font-family: var(--ff-body); font-size: 1.2rem; margin: 0 0 4px; color: var(--gold-light); }
.cookie-head p { margin: 0; color: var(--text-muted); font-size: .95rem; line-height: 1.6; }

.cookie-options { display: grid; gap: 10px; margin-bottom: 18px; }
.cookie-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
}
.cookie-opt-txt strong { display: block; font-size: .98rem; color: var(--text); }
.cookie-opt-txt small { color: var(--text-dim); font-size: .84rem; }
.cookie-opt input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  accent-color: var(--gold);
  cursor: pointer;
}
.cookie-opt input:disabled { opacity: .6; cursor: not-allowed; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 46px; font-size: .96rem; padding: 12px 18px; }

@media (max-width: 560px) {
  .cookie-card { padding: 20px 18px; }
  .cookie-actions .btn { flex-basis: 100%; }
}

/* ---------- Cities (availability) ---------- */
.cities {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.city {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s, color .2s;
}
.city:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold-light); }
.city svg { width: 20px; height: 20px; color: var(--gold-2); flex: 0 0 auto; }

.usa-note {
  display: flex;
  align-items: center;
  gap: 18px;
  background:
    radial-gradient(500px 200px at 90% 0%, rgba(217,180,90,.10), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.usa-flag {
  flex: 0 0 auto;
  width: 58px; height: 58px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(217, 180, 90, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--gold-2);
}
.usa-flag svg { width: 32px; height: 32px; }
.usa-note h3 { font-size: 1.3rem; margin: 0 0 4px; color: var(--gold-light); }
.usa-note p { margin: 0; color: var(--text-muted); }
.usa-note a { font-weight: 600; }

@media (max-width: 940px) { .cities { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) {
  .cities { grid-template-columns: repeat(2, 1fr); }
  .usa-note { flex-direction: column; text-align: center; }
}
