/* ============================================================
   דמוקרטיה על פי תהום — deep blue + gold + cyan, RTL, responsive
   ============================================================ */
:root {
  --navy-900: #08222f;
  --navy-800: #0b2f43;
  --navy-700: #0f3b55;
  --card-bg: rgba(255, 255, 255, 0.035);
  --card-border: rgba(120, 200, 225, 0.16);
  --cyan: #159fc4;
  --cyan-dark: #1187aa;
  --cyan-light: #4cc6e2;
  --gold: #e3ac52;
  --gold-soft: #efc885;
  --cream: #f2f6f8;
  --text-dim: #b9cdd8;
  --muted: #8ba6b4;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Heebo", "Segoe UI", system-ui, Arial, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(1200px 600px at 80% -10%, #12496b 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  background-attachment: fixed;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Heebo", sans-serif; line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-family: "Heebo", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 0.95rem 2.2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-cyan {
  background: linear-gradient(180deg, var(--cyan), var(--cyan-dark));
  color: #fff;
  box-shadow: 0 12px 26px rgba(21, 159, 196, 0.32);
}
.btn-cyan:hover { filter: brightness(1.06); box-shadow: 0 16px 32px rgba(21, 159, 196, 0.42); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #3a2606;
  box-shadow: 0 10px 24px rgba(227, 172, 82, 0.28);
}

/* ---------- Hero (slide 1) — full viewport height ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 5rem 0 1.6rem;
}
.hero-grid { flex: 1; display: grid; gap: 2rem; align-items: center; align-content: center; }
.hero .scroll-cue { margin-top: 1.4rem; }
.hero-text, .hero-media, .author-bio, .author-card { min-width: 0; }
.hero-text h1 {
  font-size: clamp(2.2rem, 8vw, 4.6rem);
  font-weight: 900;
  margin: 0;
  color: #fff;
}
.hero-gold { color: var(--gold); }
.lead {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--gold-soft);
  margin: 0.8rem 0 0.4rem;
  font-weight: 500;
}
.hero-desc { color: var(--text-dim); max-width: 42ch; }
.hl { color: var(--gold-soft); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-badges {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 0.5rem 1.6rem; padding: 0; margin: 1.3rem 0 0;
  color: var(--text-dim); font-size: 0.98rem; font-weight: 500;
}
.hero-badges li { display: inline-flex; align-items: center; gap: 0.45rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-cyan { background: var(--cyan-light); }
.dot-gold { background: var(--gold); }
.hero-media { justify-self: center; }
/* Image 4 sits on a dark background; feather its edges so it melts into
   the page like the Base44 hero (no hard rectangle, no frame). */
.hero-media img {
  max-height: 380px;
  width: auto;
  -webkit-mask-image: radial-gradient(ellipse 80% 92% at 50% 47%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 92% at 50% 47%, #000 60%, transparent 100%);
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.5));
}

/* ---------- Scroll cue / elegant slide separator ---------- */
.scroll-cue {
  position: relative;
  width: 46px; height: 46px;
  margin: 3rem auto 0;
  display: grid; place-items: center;
  color: var(--cyan-light);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  animation: bob 1.9s ease-in-out infinite;
  transition: background 0.15s ease, color 0.15s ease;
}
.scroll-cue svg { width: 22px; height: 22px; }
.scroll-cue:hover { background: rgba(21, 159, 196, 0.18); color: #fff; }
.scroll-cue::before, .scroll-cue::after {
  content: "";
  position: absolute; top: 50%;
  width: 34vw; max-width: 340px; height: 1px;
}
.scroll-cue::before { inset-inline-end: 100%; margin-inline-end: 1.2rem; background: linear-gradient(90deg, transparent, var(--line)); }
.scroll-cue::after { inset-inline-start: 100%; margin-inline-start: 1.2rem; background: linear-gradient(270deg, transparent, var(--line)); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Section scaffolding ---------- */
.section { padding: 4rem 0; }
.section-head { text-align: center; margin-bottom: 2.4rem; }
.eyebrow {
  color: var(--cyan-light);
  letter-spacing: 0.15em;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0 0 0.4rem;
}
.section-head h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: #fff; margin: 0; }
.underline {
  display: block;
  width: 68px;
  height: 4px;
  margin: 0.9rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--cyan-light));
}

.narrow { max-width: 760px; margin: 0 auto; }
.center-text { text-align: center; }
.center-text p { font-size: 1.12rem; color: var(--text-dim); margin: 0 0 1.2rem; }
.center-text strong { color: var(--cream); }

/* ---------- Feature cards (slide 2) ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 2.6rem;
}
.card-feature {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  padding-inline-start: 4.6rem;
}
.card-feature h3 { margin: 0 0 0.4rem; color: #fff; font-size: 1.25rem; }
.card-feature p { margin: 0; color: var(--text-dim); font-size: 0.98rem; }
.card-icon {
  position: absolute;
  inset-inline-start: 1.3rem;
  top: 1.4rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(21, 159, 196, 0.14);
  color: var(--cyan-light);
}
.card-icon svg { width: 22px; height: 22px; }
.card-feature.highlight { border-color: rgba(227, 172, 82, 0.4); background: rgba(227, 172, 82, 0.06); }
.card-feature.highlight .card-icon { background: rgba(227, 172, 82, 0.16); color: var(--gold-soft); }

/* ---------- Author (slide 3) ---------- */
.author-grid { display: grid; gap: 2rem; align-items: center; }
.author-bio { position: relative; }
.author-bio p { color: var(--text-dim); margin: 0 0 1.1rem; font-size: 1.08rem; }
.quote-mark {
  font-family: "Heebo", sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 0.5;
  color: var(--cyan-light);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.6rem;
}
.author-card { text-align: center; }
.author-photo {
  width: 210px; height: 210px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  border: 4px solid rgba(76, 198, 226, 0.35);
  box-shadow: var(--shadow);
}
.author-name { font-weight: 700; color: var(--gold-soft); margin: 1rem 0 0.1rem; font-size: 1.2rem; }
.author-title { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Order (slide 4) ---------- */
.buy-section { border-top: 1px solid var(--line); }
.order-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.price-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.price-cell { display: flex; flex-direction: column; gap: 0.15rem; }
.price-cell.qty-cell { align-items: center; }
.price-cell.total-cell { align-items: flex-start; }
.price-label { color: var(--muted); font-size: 0.85rem; }
.price-main { color: var(--gold-soft); font-weight: 700; font-size: 1.5rem; }
.price-sub { color: var(--muted); font-size: 0.82rem; }
.price-total { color: var(--gold); font-weight: 700; font-size: 1.6rem; }
.stepper { display: inline-flex; align-items: center; gap: 0.5rem; }
.stepper button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  font-size: 1.2rem; line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.stepper button:hover { background: rgba(21, 159, 196, 0.25); }
.stepper input {
  width: 42px; text-align: center;
  background: transparent; border: none; color: #fff;
  font-size: 1.15rem; font-weight: 700;
}

.order-card label {
  display: grid; gap: 0.35rem;
  color: var(--cream); font-size: 0.95rem; font-weight: 500;
}
.order-card input, .order-card textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-size: 1rem;
  font-family: inherit;
}
.order-card input::placeholder, .order-card textarea::placeholder { color: #6f8794; }
.order-card input:focus, .order-card textarea:focus {
  outline: 2px solid var(--cyan);
  border-color: var(--cyan);
}
.order-card textarea { resize: vertical; }
.address-group { display: grid; gap: 0.5rem; }
.group-label { color: var(--cream); font-size: 0.95rem; font-weight: 700; }
.address-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 0.7rem; }
.address-grid label { font-size: 0.88rem; }
.secure-note { color: var(--muted); font-size: 0.9rem; text-align: center; margin: 0.2rem 0 0; }
.nowrap { white-space: nowrap; }
.coupon-row { display: flex; gap: 0.5rem; }
.coupon-row input { flex: 1; }
.coupon-row .btn-ghost { padding: 0.55rem 1.1rem; white-space: nowrap; }
.coupon-msg { font-size: 0.85rem; min-height: 1.1em; }
.coupon-msg.ok { color: #7fdca0; }
.coupon-msg.err { color: #f0a0a0; }
.addr-msg { display: block; font-size: 0.85rem; min-height: 1.1em; margin-top: 0.2rem; }
.addr-msg.ok { color: #7fdca0; }
.addr-msg.err { color: #f0a0a0; }
.field-msg { display: block; font-size: 0.82rem; min-height: 1em; margin-top: 0.2rem; }
.field-msg.err { color: #f0a0a0; }
.field-msg.ok { color: #7fdca0; }

/* Address confirm-box (revealed after typing the free-text address) */
.confirm-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.8rem;
}
.confirm-box.hidden { display: none; }
.confirm-title { margin: 0; color: var(--gold-soft); font-size: 0.95rem; font-weight: 700; }
.confirm-box label { display: grid; gap: 0.3rem; color: var(--cream); font-size: 0.9rem; }
.confirm-box input {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  font-size: 1rem;
  font-family: inherit;
}
.confirm-box input:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
.confirm-box input.field-ok { border-color: #7fdca0; }
.confirm-box input.field-err { border-color: #f0a0a0; box-shadow: 0 0 0 1px #f0a0a0; }
.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.order-card input.field-ok { border-color: #7fdca0; }
.order-card input.field-err { border-color: #f0a0a0; box-shadow: 0 0 0 1px #f0a0a0; }
.order-card input.field-err:focus { outline-color: #f0a0a0; }

/* Dropdown popups: dark text on white so option lists are always readable
   (fixes light-on-light selects in the admin panel). */
select option { color: #14202a; background: #ffffff; }

/* ---------- Policy modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 16, 24, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
.modal-box {
  position: relative;
  background: #0d3247;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem 2rem 1.6rem;
  box-shadow: var(--shadow);
}
.modal-box h2 { color: var(--gold-soft); margin: 0 0 1rem; font-size: 1.5rem; }
.modal-box p { color: var(--text-dim); margin: 0 0 0.85rem; font-size: 0.98rem; line-height: 1.7; }
.modal-box p strong { color: var(--cream); }
.modal-box a { color: var(--cyan-light); }
.modal-close {
  position: absolute;
  inset-inline-start: 1rem;
  top: 1rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: rgba(21, 159, 196, 0.25); }

/* ---------- Footer ---------- */
.site-footer { padding: 2.6rem 0; text-align: center; border-top: 1px solid var(--line); color: var(--muted); }
.footer-title { font-family: "Heebo", sans-serif; font-weight: 800; color: var(--gold-soft); font-size: 1.2rem; margin: 0 0 0.6rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.4rem; margin-bottom: 0.7rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--cyan-light); }
.footer-copy { margin: 0; font-size: 0.88rem; }

/* ---------- Error / status pages ---------- */
.card.center {
  background: var(--cream); color: #14202a;
  max-width: 520px; margin: 4rem auto; padding: 2.5rem;
  border-radius: var(--radius); text-align: center; box-shadow: var(--shadow);
}
.card.center h1 { color: var(--navy-700); }
.card.center .btn { margin-top: 1rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 1.3rem; }
  .author-grid { grid-template-columns: 0.9fr 1.4fr; gap: 3rem; }
}
@media (min-width: 960px) {
  .wrap { padding: 0 32px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; }
  .hero-media { justify-self: start; }
  .section { padding: 5.5rem 0; }
}
@media (max-width: 480px) {
  .btn-lg { font-size: 1rem; padding: 0.85rem 1.1rem; }
  #submit-btn { font-size: 1.02rem; line-height: 1.3; }
  .modal-box { padding: 1.5rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
