/* ==========================================================
   הבית מספר — site styles
   Colours and fonts copied from the original base44 site.
   To change the look, edit the variables in :root first.
   ========================================================== */

:root {
  --background: 215 48% 95%;
  --foreground: 222 60% 8%;
  --card: 214 50% 97%;
  --primary: 222 65% 12%;
  --primary-foreground: 212 50% 96%;
  --secondary: 216 38% 88%;
  --accent: 219 80% 42%;
  --accent-foreground: 212 50% 97%;
  --border: 216 30% 80%;
  --navy: #0A1730;
  --light: #F0F5FA;
  --blue: #1E5BB8;
  --radius: 1rem;
  --font-heading: "Noto Serif Hebrew", serif;
  --font-body: "Noto Sans Hebrew", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; padding: 0; }
.font-heading { font-family: var(--font-heading); }
.hidden { display: none; }
.center { text-align: center; }

/* ---------- Icons ---------- */
.icon {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-6 { width: 1.5rem; height: 1.5rem; }
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: .75rem;
  background: hsl(var(--accent) / .1); color: hsl(var(--accent));
  flex-shrink: 0;
}
.icon-box.sm { border-radius: .5rem; }
.icon-box.lg { width: 3rem; height: 3rem; margin-bottom: 1.25rem; }
.icon-box.lg .icon { width: 1.25rem; height: 1.25rem; }

/* ---------- Layout ---------- */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 48rem; }
.form-wrap { max-width: 42rem; }
.section { padding: 6rem 0; overflow: hidden; }
.bg-light { background: hsl(var(--background)); }
.bg-tint { background: hsl(var(--secondary) / .3); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.grid-2.gap-sm { gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.align-center { align-items: center; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }

@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2.gap-sm { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .section { padding: 8rem 0; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2.gap-lg { gap: 4rem; }
}

/* ---------- Typography ---------- */
.h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.25; color: hsl(var(--foreground)); }
@media (min-width: 768px) { .h2 { font-size: 2.25rem; } }
.section-head { max-width: 48rem; margin: 0 auto 4rem; text-align: center; }
.eyebrow {
  color: hsl(var(--accent)); font-size: .875rem; font-weight: 500;
  letter-spacing: .1em; margin-bottom: 1rem;
}
.eyebrow-xl { font-size: 3rem; line-height: 1.2; }
.eyebrow-lg { font-size: 1.5rem; }
.eyebrow-icon { display: inline-flex; align-items: center; gap: .5rem; }
.sub { margin-top: 1rem; color: hsl(var(--foreground) / .6); font-size: 1rem; }
.lead { color: hsl(var(--foreground) / .7); font-size: 1.125rem; line-height: 1.7; }
.lead.muted { color: hsl(var(--foreground) / .6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  border-radius: 9999px; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; font-family: inherit;
  transition: background-color .3s, color .3s, transform .2s;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(.97); }
.btn-sm { font-size: .875rem; padding: .625rem 1.25rem; }
.btn-lg { font-size: 1.125rem; padding: 1rem 2.5rem; }
.btn-block { display: flex; width: 100%; padding: .875rem 1.25rem; font-size: 1rem; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-dark { background: var(--navy); color: var(--light); }
.btn-dark:hover { background: var(--blue); }
.btn-outline-light { border-color: rgb(240 245 250 / .4); color: var(--light); }
.btn-outline-light:hover { background: rgb(240 245 250 / .1); }
.btn-light { background: var(--light); color: var(--navy); padding: 1rem 3rem; }
.btn-light:hover { background: var(--blue); color: var(--light); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1.25rem 0; background: transparent;
  transition: all .5s;
}
.site-header.scrolled {
  padding: .75rem 0; background: hsl(var(--background) / .95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
}
.header-row { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; color: var(--light); transition: color .3s; }
.scrolled .logo { color: hsl(var(--foreground)); }
@media (min-width: 768px) { .logo { font-size: 1.5rem; } }
.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop > a:not(.btn) { font-size: .875rem; font-weight: 500; color: rgb(240 245 250 / .8); transition: color .3s; }
.scrolled .nav-desktop > a:not(.btn) { color: hsl(var(--foreground) / .7); }
.nav-desktop > a:not(.btn):hover { color: hsl(var(--accent)); }
.menu-toggle { background: none; border: 0; padding: 0; cursor: pointer; color: var(--light); }
.scrolled .menu-toggle, .menu-open .menu-toggle { color: hsl(var(--foreground)); }
.nav-mobile {
  display: none; background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border)); padding: 1rem 1.5rem; margin-top: .75rem;
}
.nav-mobile a:not(.btn) { display: block; padding: .75rem 0; color: hsl(var(--foreground) / .8); font-weight: 500; }
.nav-mobile .btn { margin-top: .75rem; }
.menu-open { background: hsl(var(--background)); }
.menu-open .logo { color: hsl(var(--foreground)); }
.menu-open .nav-mobile { display: block; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle, .nav-mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg, .cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(10 23 48 / .8), rgb(10 23 48 / .4), rgb(10 23 48 / .5));
}
.hero-content { position: relative; z-index: 10; max-width: 48rem; margin: 0 auto; padding: 5rem 1.5rem 0; text-align: center; }
.hero-title { font-size: 4.5rem; font-weight: 700; line-height: 1.15; color: var(--light); margin-bottom: 2rem; }
@media (max-width: 480px) { .hero-title { font-size: 3.25rem; } }
.hero-sub { font-size: 1.25rem; line-height: 1.375; color: rgb(240 245 250 / .9); margin-bottom: 1.5rem; }
@media (min-width: 768px) { .hero-sub { font-size: 1.5rem; } }
.hero-text { font-size: 1rem; line-height: 1.7; color: rgb(240 245 250 / .7); max-width: 36rem; margin: 0 auto 3rem; }
@media (min-width: 768px) { .hero-text { font-size: 1.125rem; } }
.hero-buttons { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.hero-buttons .btn { width: 100%; }
@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
  .hero-buttons .btn { width: auto; }
}
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgb(240 245 250 / .5); font-size: .75rem; letter-spacing: .1em;
}
.scroll-line { width: 1px; height: 3rem; background: rgb(240 245 250 / .4); }

/* ---------- Problem ---------- */
.problem-img { order: 2; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); }
.problem-img img { width: 100%; height: 100%; object-fit: cover; }
.problem-text { order: 1; }
.problem-text .h2 { margin-bottom: 2rem; }
.lines p { color: hsl(var(--foreground) / .75); font-size: 1.125rem; line-height: 1.7; margin-bottom: 1rem; }
.lines p.strong { color: hsl(var(--foreground)); font-weight: 500; }
.divider { margin-top: 2.5rem; border-top: 1px solid hsl(var(--border)); }
@media (min-width: 768px) { .problem-img { order: 1; } .problem-text { order: 2; } }

/* ---------- Approach cards ---------- */
.quote-card { border-radius: var(--radius); overflow: hidden; background: hsl(var(--card)); box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); }
.quote-card .sq { aspect-ratio: 1; overflow: hidden; }
.quote-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.quote-card:hover img { transform: scale(1.05); }
.quote-card figcaption { padding: 1.5rem; text-align: center; font-size: 1.125rem; font-style: italic; line-height: 1.375; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; padding-right: 2rem; }
.timeline::before { content: ""; position: absolute; right: 0; top: .5rem; bottom: .5rem; width: 1px; background: hsl(var(--border)); }
.step { position: relative; margin-bottom: 1.5rem; }
.step::before {
  content: ""; position: absolute; right: -2.5rem; top: 1.25rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: hsl(var(--accent)); border: 4px solid hsl(var(--background));
}
.step-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.step-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.step-num { color: hsl(var(--accent)); font-size: .875rem; font-weight: 700; }
.step h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .25rem; }
.step p { color: hsl(var(--foreground) / .65); font-size: 1rem; line-height: 1.7; }

/* ---------- Who-for cards ---------- */
.card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 2rem; box-shadow: 0 1px 2px rgb(0 0 0 / .05); transition: box-shadow .3s; }
.card:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); }
.card h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.375; margin-bottom: .75rem; }
.card p { color: hsl(var(--foreground) / .65); line-height: 1.7; }
.fits { text-align: center; margin-top: 3rem; color: hsl(var(--foreground) / .5); font-size: 1rem; }

/* ---------- Result ---------- */
.result-img { aspect-ratio: 2007 / 783; border-radius: var(--radius); overflow: hidden; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); }
.result-img img { width: 100%; height: 100%; object-fit: contain; }
.features { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.features li { display: flex; align-items: center; gap: .75rem; color: hsl(var(--foreground) / .8); font-size: 1rem; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { #result .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Galleries (masonry) ---------- */
.masonry { columns: 2; column-gap: 1rem; }
@media (min-width: 768px) { .masonry { columns: 3; } }
.tile { break-inside: avoid; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); aspect-ratio: 4 / 3; }
.tile.tall { aspect-ratio: 3 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.tile:hover img { transform: scale(1.05); }

/* ---------- Testimonial ---------- */
.testimonial {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: 0 1px 2px rgb(0 0 0 / .05);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
@media (min-width: 768px) { .testimonial { padding: 3.5rem; } }
.quote-mark { width: 2.5rem; height: 2.5rem; color: hsl(var(--accent) / .4); margin-bottom: 1.5rem; }
.testimonial blockquote { color: hsl(var(--foreground) / .9); font-size: 1.25rem; line-height: 1.7; margin-bottom: 2rem; }
@media (min-width: 768px) { .testimonial blockquote { font-size: 1.5rem; } }
.testimonial figcaption { border-top: 1px solid hsl(var(--border)); padding-top: 1.25rem; width: 100%; }
.testimonial .name { font-weight: 700; font-size: 1.125rem; }
.testimonial .role { color: hsl(var(--foreground) / .5); font-size: .875rem; }

/* ---------- FAQ ---------- */
.faq details { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 0 1.5rem; margin-bottom: .75rem; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; font-size: 1.125rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { color: hsl(var(--foreground) / .5); transition: transform .2s; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { color: hsl(var(--foreground) / .7); font-size: 1rem; line-height: 1.7; padding-bottom: 1.25rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-overlay { position: absolute; inset: 0; background: rgb(10 23 48 / .7); }
.cta-content { position: relative; z-index: 10; max-width: 42rem; margin: 0 auto; padding: 8rem 1.5rem; text-align: center; }
@media (min-width: 768px) { .cta-content { padding: 10rem 1.5rem; } }
.cta-content h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.25; color: var(--light); margin-bottom: 2.5rem; }
@media (min-width: 768px) { .cta-content h2 { font-size: 3rem; } }

/* ---------- Contact form ---------- */
#contact-form > div { margin-bottom: 1.5rem; }
#contact-form label { display: block; color: hsl(var(--foreground) / .6); font-size: .875rem; margin-bottom: .5rem; }
#contact-form input, #contact-form textarea {
  width: 100%; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: .75rem;
  color: hsl(var(--foreground)); font: inherit; font-size: 1rem; padding: .75rem 1rem; outline: none;
  transition: border-color .3s;
}
#contact-form input:focus, #contact-form textarea:focus { border-color: hsl(var(--accent)); }
#contact-form textarea { resize: none; }
#contact-form input[dir="ltr"] { text-align: right; }
#contact-form .center { padding-top: .5rem; }
.form-error { color: hsl(0 72% 51%); text-align: center; margin-bottom: 1rem; }
.form-success { text-align: center; padding: 4rem 0; }
.form-success .check {
  width: 4rem; height: 4rem; margin: 0 auto 1.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--accent) / .1); color: hsl(var(--accent)); font-size: 1.875rem;
}
.form-success h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.form-success p { color: hsl(var(--foreground) / .6); font-size: 1.125rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid hsl(var(--border)); padding: 3rem 0; }
.footer-row { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 768px) { .footer-row { flex-direction: row; } }
.footer-logo { font-size: 1.25rem; font-weight: 700; }
.footer-links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { display: inline-flex; align-items: center; gap: .5rem; color: hsl(var(--foreground) / .6); font-size: .875rem; transition: color .3s; }
.footer-links a:hover { color: hsl(var(--accent)); }
.footer-links .icon { width: 1.25rem; height: 1.25rem; }
.copyright { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid hsl(var(--border)); text-align: center; color: hsl(var(--foreground) / .4); font-size: .875rem; }

/* ---------- Mobile sticky CTA & WhatsApp ---------- */
.mobile-cta {
  position: fixed; inset: auto 0 0 0; z-index: 40; padding: 1rem;
  background: hsl(var(--background) / .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid hsl(var(--border));
  transform: translateY(100%); transition: transform .3s ease-out;
}
.mobile-cta.show { transform: translateY(0); }
@media (min-width: 768px) { .mobile-cta { display: none; } }
.wa-float {
  position: fixed; left: 1.5rem; bottom: 6rem; z-index: 40;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .2);
  transition: background-color .3s, transform .2s;
  animation: pop-in .4s ease-out 1.5s both;
}
.wa-float:hover { background: #1EBE5B; transform: scale(1.1); }
@media (min-width: 768px) { .wa-float { bottom: 1.5rem; } }

/* ---------- Animations ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(30px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.anim-in { animation: fade-up 1.1s ease-out both; }
.anim-in.d1 { animation-delay: .4s; } .anim-in.d2 { animation-delay: .6s; }
.anim-in.d3 { animation-delay: .8s; } .anim-in.d4 { animation-delay: 1.5s; }

.js .reveal { opacity: 0; transform: translateY(30px); filter: blur(4px); transition: opacity .9s ease-out, transform .9s ease-out, filter .9s ease-out; }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .reveal.d1 { transition-delay: .15s; } .js .reveal.d2 { transition-delay: .3s; } .js .reveal.d3 { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-in, .wa-float { animation: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}
