:root {
  --navy: #0c1f3d;
  --navy-2: #132a52;
  --gold: #c9a227;
  --gold-2: #e0bc4a;
  --cream: #f7f4ee;
  --ink: #1c2430;
  --muted: #5c6570;
  --line: #e4ddd2;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(12, 31, 61, 0.12);
  --header: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Heebo, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: "Frank Ruhl Libre", Georgia, serif;
  line-height: 1.25;
  margin: 0 0 0.55em;
}

p { margin: 0 0 1em; }

.skip {
  position: absolute;
  right: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 14px;
  z-index: 1000;
}
.skip:focus { right: 8px; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 31, 61, 0.96);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}
.brand img { width: 40px; height: 40px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name > span { white-space: nowrap; font-size: 0.95rem; }
.brand-name small { font-weight: 400; opacity: 0.75; font-size: 0.72rem; white-space: nowrap; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.site-nav {
  display: none;
  position: absolute;
  inset: var(--header) 0 auto;
  background: var(--navy-2);
  padding: 12px 16px 20px;
}
.site-nav.open { display: block; }
.site-nav a,
.site-nav .has-sub > button {
  display: block;
  width: 100%;
  text-align: right;
  text-decoration: none;
  padding: 12px 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.sub { display: none; padding-right: 12px; }
.has-sub.open .sub { display: block; }

.btn.header-cta { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero {
  background:
    linear-gradient(180deg, rgba(12, 31, 61, 0.82), rgba(12, 31, 61, 0.7)),
    url("../img/hero.svg") center / cover no-repeat;
  color: var(--white);
  padding: 56px 0 72px;
}
.hero-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 1.0rem;
}
.hero h1 { font-size: clamp(1.8rem, 6vw, 3.2rem); max-width: 16ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.phone-link { color: var(--gold-2); font-weight: 700; text-decoration: none; font-size: 1.15rem; }

section { padding: 56px 0; }
.section-label { color: var(--gold); font-weight: 700; margin-bottom: 8px; }

.grid { display: grid; gap: 16px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.more { color: var(--navy); font-weight: 700; text-decoration: none; }

.about-split, .contact-split { display: grid; gap: 24px; }
.stat {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 3rem;
  color: var(--gold);
  font-family: "Frank Ruhl Libre", serif;
}

.step { position: relative; padding-right: 56px; }
.steps { counter-reset: step; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.quote footer { margin-top: 12px; color: var(--muted); font-weight: 700; }

.form { display: grid; gap: 12px; }
.form label { font-weight: 700; font-size: 0.9rem; }
.form input,
.form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: var(--white);
}
.form textarea { min-height: 120px; resize: vertical; }
.form-status { min-height: 1.4em; font-weight: 700; }

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0;
}
.legal { max-width: 72ch; }

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; gap: 24px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer li { margin-bottom: 8px; }
.copy {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.whatsapp {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.whatsapp svg { width: 28px; height: 28px; fill: currentColor; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    background: transparent;
    padding: 0;
    align-items: center;
    gap: 2px;
    flex: 1;
  }
  .site-nav a,
  .site-nav .has-sub > button {
    border: 0;
    padding: 10px 10px;
    white-space: nowrap;
    width: auto;
  }
  .has-sub { position: relative; }
  .sub {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    background: var(--navy-2);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .has-sub:hover .sub,
  .has-sub:focus-within .sub { display: block; }
  .btn.header-cta { display: inline-flex; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .about-split, .contact-split {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ============ וידאו רקע ואנימציות ============ */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 88svh;
  display: grid;
  align-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(201, 162, 39, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(12, 31, 61, 0.78) 0%, rgba(12, 31, 61, 0.9) 100%);
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-orb-a {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -60px;
  background: rgba(201, 162, 39, 0.5);
  animation: drift 18s ease-in-out infinite;
}
.hero-orb-b {
  width: 380px;
  height: 380px;
  bottom: -140px;
  right: -80px;
  background: rgba(46, 106, 200, 0.45);
  animation: drift 24s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

.hero-content > * {
  animation: riseIn 0.8s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
.hero-kicker { animation-delay: 0.05s; }
.hero-name { animation-delay: 0.15s;font-size: 3rem; }
.hero h1 { animation-delay: 0.25s; }
.hero-sub { animation-delay: 0.35s; }
.hero-actions { animation-delay: 0.45s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.hero h1 {
  background: linear-gradient(100deg, #fff 25%, var(--gold-2) 50%, #fff 75%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: riseIn 0.8s cubic-bezier(0.22, 0.8, 0.3, 1) both, shine 7s linear 1.2s infinite;
}

@keyframes shine {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

.pill {
  animation: float 5s ease-in-out infinite;
  backdrop-filter: blur(4px);
}
.pill:nth-child(2) { animation-delay: 0.6s; }
.pill:nth-child(3) { animation-delay: 1.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 8px;
}
.hero-cue span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-2);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% { transform: translateY(0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* חשיפה בגלילה */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* כרטיסים וכפתורים */
.card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(12, 31, 61, 0.2);
}
.card .more::after {
  content: " ›";
  display: inline-block;
  transition: transform 0.3s ease;
}
.card:hover .more::after { transform: translateX(-5px); }

.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.btn:hover::after { left: 120%; }

.site-header { transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.site-header.scrolled {
  background: rgba(9, 24, 48, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.stat { position: relative; overflow: hidden; }
.stat strong { font-variant-numeric: tabular-nums; }

.step::before { transition: transform 0.3s ease, background-color 0.3s ease; }
.card.step:hover::before {
  transform: scale(1.12);
  background: var(--gold);
  color: var(--navy);
}

.whatsapp { transition: transform 0.3s ease; }
.whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ping 2.4s ease-out infinite;
}
.whatsapp:hover { transform: scale(1.08); }

@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

.form input,
.form textarea { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.22);
}

.site-nav a { position: relative; }
@media (min-width: 768px) {
  .site-nav a::after {
    content: "";
    position: absolute;
    right: 10px;
    left: 10px;
    bottom: 4px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  .site-nav a:hover::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-video { display: none; }
}
