/* ============================================================
   עו"ד אורן מרל — One-Page (v3.1)
   בסיס: merel_site_spec.md (Heebo/Assistant, slate, teal, gold).
   שדרוג עיצוב: טיפוגרפיה גדולה, hero+contact כהים, הדגשות זהב,
   עומק (צל צבעוני, אייקונים מלאים), תנועה מדורגת, טיפול בפורטרט.
   ============================================================ */

:root {
  /* Colors — per spec + dark stage */
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --ink-hero: #0B1526;
  --text-primary: #0F172A;
  --text-body: #334155;
  --brand-teal: #0E7490;
  --brand-teal-dark: #155E75;
  --brand-teal-tint: #E6F3F7;
  --teal-bright: #22D3EE;
  --brand-gold: #D97706;
  --gold-bright: #F59E0B;
  --brand-gold-tint: #FDF3E3;
  --whatsapp-green: #25D366;
  --line: #E2E8F0;
  --muted: #64748B;

  /* Fonts — per spec */
  --font-heading: 'Heebo', sans-serif;
  --font-body: 'Assistant', sans-serif;

  --radius: 14px;
  --maxw: 1080px;
  --sec-gap: 88px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.22;
  letter-spacing: -0.015em;
}
h1 { font-weight: 900; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }

a { color: inherit; }
img { max-width: 100%; display: block; }

/* הדגשת מרקר זהב על מילות מפתח */
.mark {
  background: linear-gradient(transparent 62%, rgba(217, 119, 6, 0.3) 62%);
  padding-inline: 2px;
}

.skip-link {
  position: absolute; top: -48px; right: 16px; z-index: 100;
  background: var(--text-primary); color: #fff;
  padding: 10px 18px; border-radius: 8px; text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2.5px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- header (כהה, מתחבר ל-hero) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink-hero) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.site-header .bar { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.wordmark {
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.15rem; color: #fff;
  text-decoration: none; white-space: nowrap; line-height: 1.25;
  display: flex; flex-direction: column; justify-content: center; min-height: 44px;
}
.wordmark small {
  display: block; font-weight: 500; font-size: 0.875rem;
  letter-spacing: 0.08em; color: var(--teal-bright);
}
.site-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.site-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: #B6C2D2; transition: color 0.15s;
}
.site-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.site-header .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.site-header .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 11px; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--whatsapp-green); border-color: var(--whatsapp-green); color: #052e16; }
.btn-wa:hover { background: #1fbd5a; box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4); }
.btn-teal { background: var(--brand-teal); color: #fff; border-color: var(--brand-teal); }
.btn-teal:hover { background: var(--brand-teal-dark); box-shadow: 0 10px 26px rgba(14, 116, 144, 0.35); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--text-primary); }
.btn-ghost:hover { background: rgba(15, 23, 42, 0.05); }
.btn-sm { padding: 8px 16px; font-size: 0.92rem; }
.btn svg { flex: none; }

/* ---------- hero (במה כהה) ---------- */
.hero {
  background:
    radial-gradient(700px 420px at 22% 30%, rgba(14, 116, 144, 0.35), transparent 70%),
    linear-gradient(180deg, var(--ink-hero), #101D31);
  color: #E2E8F0;
  padding-block: 76px 88px;
  overflow: clip; /* ההילה של הפורטרט (inset שלילי) לא תגלוש מה-viewport */
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.eyebrow {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.11em;
  color: var(--brand-teal); margin-bottom: 16px;
}
.hero .eyebrow { color: var(--teal-bright); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero .lead { font-size: 1.3rem; color: #A7B4C6; max-width: 32em; margin-bottom: 34px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.trust-line {
  font-size: 0.92rem; color: #8FA0B5;
  padding-top: 22px; border-top: 1px solid rgba(148, 163, 184, 0.25); max-width: 38em;
}
.trust-line b { color: #fff; font-weight: 700; }

.portrait { justify-self: center; position: relative; }
.portrait::after {
  content: ""; position: absolute; inset: -12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.22), transparent);
}
.portrait img {
  width: min(350px, 100%); height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(2, 8, 20, 0.55), 0 8px 24px rgba(14, 116, 144, 0.35);
}
.portrait::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px;
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius); z-index: -1;
}

/* כניסת hero מדורגת */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero .lead, .hero .cta-row, .hero .trust-line, .hero .portrait {
  animation: rise 0.6s ease both;
}
.hero h1 { animation-delay: 0.08s; }
.hero .lead { animation-delay: 0.16s; }
.hero .cta-row { animation-delay: 0.24s; }
.hero .trust-line { animation-delay: 0.32s; }
.hero .portrait { animation-delay: 0.12s; }

/* ---------- section scaffolding ---------- */
section { padding-block: var(--sec-gap); }
.sec-head { max-width: 46em; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 1.12rem; }

/* ---------- story ---------- */
.story { background: var(--bg-secondary); border-block: 1px solid var(--line); }
.story .wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 60px; align-items: center; }
.story blockquote {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 500; line-height: 1.75;
  color: var(--text-primary);
  border-inline-start: 4px solid var(--brand-gold);
  padding-inline-start: 24px; margin-block: 6px 32px;
}
.story .points { display: grid; gap: 18px; }
.story .point { display: flex; gap: 15px; align-items: flex-start; }
.story .point .ico {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-teal); color: #fff;
  box-shadow: 0 6px 16px rgba(14, 116, 144, 0.3);
}
.story .point h3 { font-size: 1.1rem; margin-bottom: 2px; }
.story .point p { font-size: 1rem; color: var(--muted); }
.story img {
  width: min(300px, 100%); height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(14, 116, 144, 0.18);
  justify-self: center;
}

/* ---------- card grids ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg-secondary); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  border-top: 3px solid var(--brand-teal);
  box-shadow: 0 10px 30px rgba(14, 116, 144, 0.07);
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 116, 144, 0.14); }
.card.gold { border-top-color: var(--brand-gold); box-shadow: 0 10px 30px rgba(217, 119, 6, 0.08); }
.card.gold:hover { box-shadow: 0 18px 40px rgba(217, 119, 6, 0.16); }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; margin-bottom: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-teal); color: #fff;
  box-shadow: 0 6px 16px rgba(14, 116, 144, 0.3);
}
.card.gold .ico { background: var(--brand-gold); box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3); }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { font-size: 1rem; color: var(--muted); }
.card p b { color: var(--text-primary); }

/* כניסה מדורגת לכרטיסים */
.cards .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3) { transition-delay: 0.16s; }
.cards .reveal:nth-child(4) { transition-delay: 0.24s; }

.sec-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.sec-cta .note { font-size: 0.95rem; color: var(--muted); }

/* ---------- סטאט לשון הרע ---------- */
.stat-banner {
  margin-top: 26px;
  background: linear-gradient(135deg, var(--brand-teal-tint), #D3EBF2);
  border: 1px solid rgba(14, 116, 144, 0.25);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: grid; grid-template-columns: auto 1fr; gap: 10px 34px; align-items: center;
}
.stat-banner .num {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1;
  color: var(--brand-teal); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat-banner .num small { font-size: 0.4em; font-weight: 700; }
.stat-banner .txt h3 { font-size: 1.2rem; margin-bottom: 4px; }
.stat-banner .txt p { font-size: 0.98rem; color: var(--brand-teal-dark); }

/* ---------- faq ---------- */
.faq { background: var(--bg-secondary); border-block: 1px solid var(--line); }
.faq-list { max-width: 760px; display: grid; gap: 12px; }
.faq-list details {
  background: var(--bg-primary); border: 1px solid var(--line);
  border-radius: 12px;
}
.faq-list summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 22px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem;
  color: var(--text-primary);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand-teal);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details .a { padding: 0 22px 20px; font-size: 1.02rem; }
.faq-list details .a p { margin-bottom: 10px; }
.faq-guides { margin-top: 34px; font-size: 1rem; color: var(--muted); }
.faq-guides a { color: var(--brand-teal); font-weight: 700; }

/* ---------- contact (במה כהה, סוגר את הדף) ---------- */
.contact {
  background:
    radial-gradient(600px 380px at 80% 20%, rgba(14, 116, 144, 0.3), transparent 70%),
    linear-gradient(180deg, #101D31, var(--ink-hero));
  color: #E2E8F0;
}
.contact .eyebrow { color: var(--teal-bright); }
.contact .sec-head h2 { color: #fff; }
.contact .sec-head p { color: #A7B4C6; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-form {
  background: var(--bg-secondary); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px;
  box-shadow: 0 24px 50px rgba(2, 8, 20, 0.45);
  display: grid; gap: 16px;
}
.contact-form label { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); display: grid; gap: 6px; }
.contact-form input, .contact-form select {
  font-family: var(--font-body); font-size: 1.02rem; color: var(--text-primary);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px;
  background: var(--bg-primary); width: 100%;
}
.contact-form input:focus, .contact-form select:focus {
  outline: none; border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.18);
}
.form-note { font-size: 0.88rem; color: var(--muted); }
.contact-details { display: grid; gap: 18px; align-content: start; }
.contact-details .row { display: grid; gap: 2px; }
.contact-details .k {
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; color: #8FA0B5;
}
.contact-details .v { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; text-decoration: none; }
.contact-details a.v:hover { text-decoration: underline; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.contact .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.contact .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- footer ---------- */
.site-footer {
  background: #070E1A; color: #7C8CA1;
  font-size: 0.9rem; padding-block: 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.site-footer .wrap { display: grid; gap: 10px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: #B6C2D2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }

/* ---------- floating mobile bar ---------- */
.floating-bar {
  display: none;
  position: fixed; bottom: 0; inset-inline: 0; z-index: 60;
  background: var(--bg-secondary); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(2, 8, 20, 0.12);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.floating-bar .btn { flex: 1; padding: 13px 10px; font-size: 1rem; }

/* ---------- עמודי מדריך ---------- */
.article { padding-block: 56px 80px; }
.article .wrap { max-width: 720px; }
.article .eyebrow { margin-bottom: 10px; }
.article h1 { font-size: clamp(2rem, 4.2vw, 2.7rem); margin-bottom: 12px; }
.article .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 36px; }
.article h2 { font-size: 1.5rem; margin: 42px 0 12px; }
.article p, .article li { color: var(--text-body); margin-bottom: 14px; }
.article ul { padding-inline-start: 22px; }
.article table {
  width: 100%; border-collapse: collapse; margin-block: 20px;
  background: var(--bg-secondary); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font-variant-numeric: tabular-nums;
}
.article th, .article td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); }
.article th { background: var(--text-primary); color: #fff; font-weight: 600; font-size: 0.92rem; }
.article tr:last-child td { border-bottom: none; }
.article td.num { font-weight: 700; }
.callout { background: var(--brand-gold-tint); border-radius: var(--radius); padding: 22px 24px; margin-block: 30px; }
.callout p:last-child { margin-bottom: 0; }
.disclaimer { font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 46px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
  .hero .eyebrow, .hero h1, .hero .lead, .hero .cta-row, .hero .trust-line, .hero .portrait { animation: none; }
  .faq-list summary::after { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  :root { --sec-gap: 60px; }
  body { padding-bottom: 70px; }
  .hero .wrap, .story .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 44px; }
  .cards { grid-template-columns: 1fr; }
  .portrait { order: -1; }
  .portrait img { width: min(280px, 82%); }
  .portrait::before { display: none; }
  .story img { display: none; }
  .site-nav { display: none; }
  .hero { padding-block: 48px 60px; }
  .stat-banner { grid-template-columns: 1fr; gap: 12px; padding: 28px 24px; text-align: center; }

  /* header: בלי nav, הכפתורים נצמדים לקצה */
  .site-header .bar { gap: 12px; }
  .header-actions { margin-inline-start: auto; }
  .site-header .btn { padding: 8px 12px; font-size: 0.88rem; white-space: nowrap; }

  /* מרכוז תוכן במובייל */
  .hero { text-align: center; }
  .hero .lead, .hero .trust-line { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
  .portrait img { margin-inline: auto; }
  .eyebrow { text-align: center; }
  .sec-head { text-align: center; margin-inline: auto; }
  .story { text-align: center; }
  .story blockquote {
    border-inline-start: none; padding-inline-start: 0;
    border-top: 3px solid var(--brand-gold); padding-top: 18px;
  }
  .story .point { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .card { text-align: center; }
  .sec-cta { flex-direction: column; justify-content: center; text-align: center; gap: 12px; }
  .employer-note { text-align: center; margin-inline: auto; }
  .contact-details { text-align: center; }
  .contact-details .row { justify-items: center; }
  .quick-actions { justify-content: center; }
  .site-footer { text-align: center; }
  .site-footer .links { justify-content: center; }
}
