/* ==========================================================================
   אלעד פיננסים - עיצוב דף נחיתה
   פלטת מותג ירוקה, נגישות בהתאם לת"י 5568 (WCAG 2.0 AA), RTL
   ========================================================================== */

:root {
  /* פלטת מותג - ירוק "אלעד פיננסים" */
  --navy: #1e5136;        /* ירוק עמוק - כותרות ואזורים כהים */
  --navy-800: #24623f;
  --navy-700: #2f7d44;    /* ירוק הלוגו - קישורים והדגשות */
  --gold: #b0810c;
  --gold-dark: #876208;
  --ink: #1c2b22;
  --body: #37453c;
  --muted: #5f6b62;
  --line: #dde5df;
  --bg: #ffffff;
  --bg-soft: #f4f7f4;
  --bg-navy-tint: #eaf2ec;
  --success-bg: #e6f3ea;
  --success-fg: #1c6b3c;
  --error-fg: #a4262c;
  --focus: #2f7d44;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(20, 60, 40, .09), 0 1px 2px rgba(20, 60, 40, .06);
  --shadow-md: 0 8px 24px rgba(20, 60, 40, .12);
  --maxw: 1120px;
  --font: "Assistant", "Heebo", "Rubik", -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.0625rem;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--navy); }

ul { padding-inline-start: 1.25rem; margin-bottom: 1rem; }
li { margin-bottom: .4rem; }

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

/* ---- Focus visibility (accessibility) ---- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
/* keep outline for keyboard even inside dark sections */
.section--navy :focus-visible { outline-color: #ffd98a; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  right: 12px;
  top: -60px;
  background: var(--navy);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top .2s ease;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---- Layout ---- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

section { padding-block: clamp(3rem, 7vw, 5.5rem); }

.section--soft { background: var(--bg-soft); }
.section--navy {
  background: var(--navy);
  color: #d6e6dc;
}
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold-dark);
  text-transform: none;
  margin-bottom: .6rem;
}
.section--navy .eyebrow { color: #ffd98a; }
.lead { font-size: 1.15rem; color: var(--muted); }
.section--navy .lead { color: #aecbb8; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  padding: .95rem 1.9rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .05s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--gold);
  color: #241a02;
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: #fff; }
.section--navy .btn--ghost { color: #fff; border-color: #fff; }
.section--navy .btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__logo {
  height: 52px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .brand__logo { height: 44px; }
}
.header-actions { display: flex; align-items: center; gap: .75rem; }
@media (max-width: 480px) {
  .header-cta { padding: .7rem 1rem; font-size: .95rem; }
}

/* ---- Hero ---- */
.hero {
  background:
    linear-gradient(180deg, var(--bg-navy-tint), #fff);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title { margin-bottom: 1.1rem; }
.hero__text { font-size: 1.2rem; color: var(--body); margin-bottom: 1.75rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.5rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  font-size: .95rem; color: var(--muted); font-weight: 600;
}
.hero__trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust svg { flex-shrink: 0; color: var(--gold-dark); }

.hero__person {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.6rem;
}
.hero__person-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.hero__person-name {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}
.hero__person-name span {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__form-wrap { order: 2; }
}

/* ---- How it works (free check) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: .9rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--body); font-size: 1rem; margin: 0; }
.free-check__note {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  max-width: 640px;
  margin: 0 auto 1.75rem;
}
.center { text-align: center; }

.pay-terms {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.pay-terms h3 { margin-bottom: .5rem; }
.pay-terms p { color: var(--body); font-size: 1rem; }
.pay-terms p:last-child { margin-bottom: 0; }
.pay-terms__fine { font-size: .85rem; color: var(--muted); margin-top: .9rem; }

/* ---- Form card ---- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.form-card h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.form-card__hint { font-size: .95rem; color: var(--muted); margin-bottom: 1.25rem; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .4rem;
  font-size: .98rem;
}
.field .req { color: var(--error-fg); }
.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #c4ccd6;
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(47, 125, 68, .2);
  outline: none;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--error-fg);
}
.field-error {
  display: none;
  color: var(--error-fg);
  font-size: .9rem;
  font-weight: 600;
  margin-top: .35rem;
}
.field-error.is-visible { display: block; }

.field-hint {
  font-size: .84rem;
  color: var(--muted);
  margin-top: .35rem;
  line-height: 1.5;
}

.consent {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.55;
}
.consent input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: .15rem;
  flex-shrink: 0;
  accent-color: var(--navy);
}
.consent label { font-weight: 600; color: var(--body); margin: 0; font-size: .92rem; }

/* honeypot - מוסתר מבני אדם בלי לגרום לגלילה אופקית */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form-status {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
}
.form-status.is-error {
  display: block;
  background: #fbeaea;
  color: var(--error-fg);
  border: 1px solid #e6b8ba;
}
.form-success {
  display: none;
  text-align: center;
  padding: 1rem .5rem;
}
.form-success.is-visible { display: block; }
.form-success .check {
  width: 56px; height: 56px;
  margin: 0 auto .8rem;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-fg);
  display: grid; place-items: center;
}
.form-success h3 { color: var(--success-fg); margin-bottom: .4rem; }
.form-legal {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .9rem;
  line-height: 1.5;
}

/* ---- Services ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--bg-navy-tint);
  color: var(--navy);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--body); font-size: 1rem; margin-bottom: .9rem; }
.card__list { font-size: .95rem; color: var(--body); }
.card__list li::marker { color: var(--gold-dark); }
.card__note {
  margin-top: .9rem;
  font-size: .9rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: .8rem;
}

/* ---- Why us ---- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
}
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 1rem; }
.feature__num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
  border: 2px solid currentColor;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feature h3 { color: #fff; font-size: 1.15rem; margin-bottom: .35rem; }
.feature p { color: #aecbb8; font-size: .98rem; margin: 0; }

/* ---- About ---- */
.about .container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 820px) {
  .about .container { grid-template-columns: 1fr; }
  .about__photo { max-width: 300px; }
}
.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-navy-tint), #dde5ef);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about__photo .placeholder-note {
  padding: 1rem;
  font-size: .9rem;
  font-weight: 600;
}
.about__photo svg { margin-bottom: .5rem; color: #9aa8b8; }
.about__name { margin-bottom: .2rem; }
.about__role { color: var(--gold-dark); font-weight: 700; margin-bottom: 1rem; }
.about__subhead {
  font-size: 1.05rem;
  margin-top: 1.6rem;
  margin-bottom: .5rem;
  color: var(--ink);
}
.about__creds { padding-inline-start: 1.25rem; }
.about__creds li::marker { color: var(--gold-dark); }
.about__creds-note {
  color: var(--muted);
  font-size: .95rem;
  border-inline-start: 3px solid var(--line);
  padding-inline-start: .9rem;
}

/* ---- Reviews (placeholder) ---- */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .reviews__grid { grid-template-columns: 1fr; } }
.review {
  background: #fff;
  border: 1px dashed #c4ccd6;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.review--filled { border-style: solid; border-color: var(--line); box-shadow: var(--shadow-sm); }
.review__stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .6rem; font-size: 1.1rem; }
.review__text { color: var(--body); font-size: 1rem; font-style: italic; }
.review__author { margin-top: .9rem; font-weight: 700; color: var(--ink); font-size: .95rem; }
.review__placeholder {
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
  padding: 1.5rem 0;
}

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .6rem; }
.cta-band p { color: #aecbb8; max-width: 620px; margin-inline: auto; margin-bottom: 1.6rem; }

/* ---- Footer ---- */
.site-footer {
  background: #0b2038;
  color: #9fb0c3;
  padding-block: 2.5rem;
  font-size: .95rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; gap: 1.5rem; } }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .6rem; }
.site-footer a { color: #cdd9e6; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom {
  border-top: 1px solid #1c3450;
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: #7d90a4;
}
.footer-disclaimer { margin-top: .6rem; }

/* ---- Legal / content pages ---- */
.legal-page { padding-block: clamp(2.5rem, 6vw, 4rem); }
.legal-page .container { max-width: 800px; }
.legal-page h1 { margin-bottom: .4rem; }
.legal-page .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: .6rem; }
.legal-page h3 { font-size: 1.08rem; margin-top: 1.4rem; margin-bottom: .4rem; }
.legal-page ul { padding-inline-start: 1.4rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 700; }

/* ---- Utilities ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
