/* Leads2loan — design system
 * Editorial fintech aesthetic: warm cream + ink + brand gold (logo)
 * Heebo display + body, single accent, generous whitespace
 */

:root {
  /* Surfaces */
  --bg:          #FAF8F4;
  --bg-elevated: #FFFFFF;
  --bg-dark:     #0E0E10;
  --bg-card:     #FFFFFF;
  --bg-subtle:   #F2EFE9;
  --bg-tint:     #1A1A1D;

  /* Text */
  --ink:         #0E0E10;
  --ink-soft:    #3A3A3D;
  --ink-mute:    #6E6E72;
  --ink-faint:   #A8A8AD;
  --on-dark:     #FAF8F4;
  --on-dark-mute:#9C9CA0;

  /* Brand — gold from logo */
  --gold:        #F0C000;   /* primary, vibrant from logo */
  --gold-dark:   #C29800;   /* hover */
  --gold-deep:   #8C6E00;   /* text-on-light strong accent */
  --gold-soft:   #FDF6DD;   /* tint */
  --gold-bright: #FFDC4A;   /* highlight */

  /* Semantic accents */
  --red:         #E5141D;   /* hot / warning only */
  --green:       #1B7F46;   /* success */

  /* Lines */
  --line:        #E4DFD5;
  --line-soft:   #EDE9DF;
  --line-dark:   #2A2A2D;

  /* Type */
  --display: 'Heebo', 'Rubik', 'Arial', sans-serif;
  --body:    'Heebo', 'Rubik', 'Arial', sans-serif;
  --mono:    'JetBrains Mono', 'Menlo', 'Consolas', monospace;

  /* Sizing */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  14px;
  --r-xl:  24px;
  --shadow-sm: 0 1px 2px rgba(14,14,16,0.04), 0 0 0 1px rgba(14,14,16,0.04);
  --shadow:    0 4px 24px rgba(14,14,16,0.06), 0 0 0 1px rgba(14,14,16,0.04);
  --shadow-lg: 0 24px 48px rgba(14,14,16,0.10), 0 4px 12px rgba(14,14,16,0.05);
}

/* Reset */
* { box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; border-radius: 2px; }

html, body {
  min-height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  direction: rtl;
  position: relative;
  transform: translateZ(0);
}
::selection { background: var(--gold); color: var(--ink); }

/* Container */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow { max-width: 720px; }
.wrap--wide   { max-width: 1320px; }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 800;
}
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
h4 { font-size: 19px; }

p, li { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
p strong, li strong { color: var(--ink); font-weight: 700; }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--ink-faint); transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--gold-dark); text-decoration-color: var(--gold-dark); }

img, svg { max-width: 100%; height: auto; display: block; }

/* ─────────── Topbar ─────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: 1320px; margin: 0 auto;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--gold-dark); }
.nav-cta {
  background: var(--ink); color: var(--bg) !important;
  padding: 9px 18px; border-radius: 999px;
  font-weight: 600 !important; font-size: 14px !important;
  transition: background .15s, color .15s;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

.menu-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }

@media (max-width: 800px) {
  .nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 20px 24px; align-items: flex-start; gap: 16px; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
}

/* ─────────── Hero ─────────── */

.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 85% 10%, rgba(240,192,0,0.10), transparent 70%),
    radial-gradient(700px 500px at 10% 90%, rgba(240,192,0,0.06), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 6px 12px;
  background: var(--gold-soft);
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.hero h1 .accent {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .underline {
  position: relative; white-space: nowrap;
}
.hero h1 .underline::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 10px;
  background: var(--gold); opacity: 0.55; border-radius: 4px; z-index: -1;
}
.hero-lede {
  font-size: 21px; line-height: 1.6; color: var(--ink-soft);
  margin: 24px 0 32px; max-width: 600px;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 24px 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust-item .num { font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.trust-item .num .pop { color: var(--gold-dark); }
.trust-item .lbl { font-size: 13px; color: var(--ink-mute); }

/* ─────────── Buttons ─────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--body); font-size: 16px; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s, border-color .15s;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--gold); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); color: var(--bg); }
.btn-lg { padding: 17px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ─────────── Lead Form ─────────── */

.lead-form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.lead-form-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-bright));
}
.lead-form-card h2 {
  font-size: 24px; line-height: 1.2; margin-bottom: 6px;
}
.lead-form-card .sub {
  font-size: 14px; color: var(--ink-mute); margin-bottom: 22px;
}

.lead-form { display: grid; gap: 12px; }
.lead-form label { font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 4px; display: block; }
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--body); font-size: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  direction: rtl;
  text-align: right;
  transition: border-color .15s, box-shadow .15s;
}
.lead-form input[type="tel"] {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
.lead-form input:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(240,192,0,0.18);
}
.lead-form input::placeholder { color: var(--ink-faint); }

.form-fineprint {
  margin-top: 14px; font-size: 12px; color: var(--ink-mute); text-align: center; line-height: 1.5;
}
.form-success {
  background: var(--green); color: #fff;
  padding: 20px; border-radius: var(--r-md); margin-top: 14px;
  font-size: 17px; font-weight: 600; text-align: center;
}
.form-error {
  background: #b91c1c; color: #fff;
  padding: 12px 16px; border-radius: var(--r-md); margin-top: 10px;
  font-size: 14px;
}

/* ─────────── Sections ─────────── */

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--bg-dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark p, .section--dark li { color: var(--on-dark-mute); }
.section--dark a { color: var(--on-dark); text-decoration-color: rgba(250,248,244,0.3); }
.section--dark a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.section--dark .eyebrow { background: rgba(240,192,0,0.15); color: var(--gold); }
.section--tint { background: var(--bg-subtle); }

.section-head { margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 19px; max-width: 640px; }

/* ─────────── Stats band ─────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--display); font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); display: block; line-height: 1; }
.stat .n .gold { color: var(--gold-dark); }
.stat .l { font-size: 14px; color: var(--ink-mute); margin-top: 8px; }

@media (max-width: 600px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* ─────────── Pricing grid ─────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ink); }
.price-card.featured { border: 2px solid var(--ink); }
.price-card.featured::after {
  content: 'הכי פופולרי';
  position: absolute; top: -10px; right: 20px;
  background: var(--gold); color: var(--ink);
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.price-card h3 { font-size: 18px; margin-bottom: 6px; }
.price-card .desc { font-size: 14px; color: var(--ink-mute); margin: 0 0 18px; line-height: 1.5; }
.price-card .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-card .price .amount { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.price-card .price .cur { font-size: 18px; color: var(--ink-mute); }
.price-card .per { font-size: 13px; color: var(--ink-mute); margin: 0; }
.price-card .conv {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-mute);
  display: flex; justify-content: space-between; align-items: center;
}
.price-card .conv strong { color: var(--green); font-weight: 700; }

/* ─────────── How it works ─────────── */

.howit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.howit-step .num {
  font-family: var(--display);
  font-size: 60px; font-weight: 800;
  color: var(--gold); letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}
.howit-step h3 { font-size: 21px; margin-bottom: 8px; }
.howit-step p { font-size: 15px; line-height: 1.65; margin: 0; }

/* ─────────── Feature cards ─────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature .icon {
  width: 44px; height: 44px;
  background: var(--ink); color: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { font-size: 15px; margin: 0; }

/* ─────────── Article cards ─────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.art-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ink); color: var(--ink); }
.art-card .cover { aspect-ratio: 16 / 9; background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; }
.art-card .cover svg { width: 100%; height: 100%; }
.art-card .body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.art-card .cat { font-family: var(--mono); font-size: 11px; color: var(--gold-deep); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.art-card h3 { font-size: 21px; line-height: 1.3; margin-bottom: 8px; }
.art-card p { font-size: 14.5px; color: var(--ink-mute); margin: 0; line-height: 1.5; flex: 1; }
.art-card .read { margin-top: 14px; font-size: 13px; color: var(--ink); font-weight: 600; }

/* ─────────── Footer ─────────── */

footer.site {
  background: var(--bg-dark); color: var(--on-dark);
  padding: 64px 0 28px;
  margin-top: 80px;
}
footer.site .grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 800px) { footer.site .grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 460px) { footer.site .grid { grid-template-columns: 1fr; } }
footer.site h3 { color: var(--on-dark); font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
footer.site a { color: var(--on-dark-mute); text-decoration: none; display: block; padding: 4px 0; font-size: 15px; }
footer.site a:hover { color: var(--gold); }
footer.site .blurb { font-size: 14px; color: var(--on-dark-mute); line-height: 1.6; margin: 0 0 16px; max-width: 320px; }
footer.site .brand img { height: 32px; margin-bottom: 16px; }
footer.site .bottom {
  border-top: 1px solid var(--line-dark);
  margin-top: 40px; padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--on-dark-mute);
}

/* Print */
@media print {
  .topbar, .nav, .cta-box, .related, footer.site { display: none; }
  body { background: #fff; }
}

/* Responsive */
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
  .lead-form-card { padding: 24px; }
}

/* ─────────── Modal (lead form popup) ─────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  direction: rtl;
}
.modal[hidden] { display: none !important; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,14,16,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: ll-modal-overlay-in .2s ease;
}
.modal-card {
  position: relative;
  background: var(--bg-card);
  max-width: 480px;
  width: 100%;
  padding: 36px 32px 28px;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
  animation: ll-modal-card-in .25s cubic-bezier(.16,1,.3,1);
}
.modal-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-bright));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal-close {
  position: absolute;
  top: 12px;
  left: 14px;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--bg-subtle); color: var(--ink); }
.modal-card h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 6px;
  padding-left: 40px;
}
.modal-card .sub {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0 0 22px;
}
body.modal-open { overflow: hidden; }

@keyframes ll-modal-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ll-modal-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─────────── Footer Google Maps ─────────── */

.footer-map {
  margin-top: 32px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--bg-tint);
  position: relative;
  filter: grayscale(0.2) brightness(0.85);
}
.footer-map iframe {
  width: 100%;
  height: 240px;
  display: block;
  border: 0;
}
.footer-map-address {
  background: var(--bg-tint);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--on-dark-mute);
  border-top: 1px solid var(--line-dark);
}
.footer-map-address svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); }
.footer-map-address a { color: var(--gold); text-decoration: none; font-weight: 500; padding: 0; }
.footer-map-address a:hover { color: var(--gold-bright); text-decoration: underline; }
