/* ==========================================================================
   אלמוג אמיר, עורך דין — מערכת עיצוב
   פלטה: דיו כהה + קלף חם + פליז עתיק — קלאסי, רציני, אמין
   טיפוגרפיה: Frank Ruhl Libre (כותרות) + Heebo (גוף טקסט)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;500;700;900&family=Heebo:wght@300;400;500;600&display=swap');

:root {
  /* צבעים */
  --ink-900: #141a22;
  --ink-800: #1b2430;
  --ink-700: #2a3542;
  --parchment: #f6f3ec;
  --parchment-dim: #ece7da;
  --brass: #a4802f;
  --brass-light: #c9a55a;
  --slate: #4a5361;
  --slate-light: #7c8494;
  --hairline: #d8d2c2;
  --hairline-dark: #3a4553;

  /* טיפוגרפיה */
  --serif: 'Frank Ruhl Libre', 'David Libre', serif;
  --sans: 'Heebo', system-ui, sans-serif;

  /* מרווחים */
  --gutter: clamp(24px, 6vw, 96px);
  --content-max: 1180px;
  --text-max: 640px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink-800);
  background: var(--parchment);
  direction: rtl;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
  line-height: 1.25;
}

p { margin: 0 0 1em; max-width: var(--text-max); }

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- כותרת עליונה ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--parchment);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--brass);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  font-size: 15.5px;
  color: var(--ink-800);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--brass);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--brass);
}

.nav-phone {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-900);
  border: 1px solid var(--ink-900);
  padding: 9px 20px;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-phone:hover { background: var(--ink-900); color: var(--parchment); }

.nav-toggle { display: none; }

/* ---------- הירו ---------- */

.hero {
  background: var(--ink-900);
  color: var(--parchment);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 85% 0%, rgba(164,128,47,0.14), transparent 60%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero-eyebrow {
  font-size: 15px;
  color: var(--brass-light);
  margin-bottom: 22px;
  max-width: 420px;
}

.hero h1 {
  color: var(--parchment);
  font-size: clamp(38px, 4.6vw, 60px);
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brass-light);
}

.hero-rule {
  width: 64px;
  height: 3px;
  background: var(--brass);
  margin: 28px 0 26px;
}

.hero-lede {
  color: #cfd3d9;
  font-size: 18.5px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: 2px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-brass {
  background: var(--brass);
  color: var(--ink-900);
}
.btn-brass:hover { background: var(--brass-light); }

.btn-ghost {
  border-color: rgba(246,243,236,0.4);
  color: var(--parchment);
}
.btn-ghost:hover { border-color: var(--parchment); background: rgba(246,243,236,0.06); }

.hero-figures {
  border-top: 1px solid rgba(246,243,236,0.18);
  padding-top: 32px;
  margin-top: 40px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px 48px;
}

.figure .num {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--brass-light);
  display: block;
}
.figure .label {
  font-size: 14px;
  color: #b7bcc4;
  margin-top: 2px;
}

@keyframes trust-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-ticker-track { animation: none; }
  .reviews-ticker { overflow-x: auto; }
}

/* ---------- רצועת ביקורות (כרטיסים נעים) ---------- */

.reviews-ticker {
  background: var(--ink-900);
  border-top: 1px solid rgba(246,243,236,0.12);
  overflow: hidden;
  padding: 52px 0;
  /* direction:ltr is required here (not just on the track) so the RTL page
     doesn't right-anchor this wide overflowing track — otherwise the
     translateX(-50%) loop drifts into empty space with nothing rendered
     for long stretches before it wraps. */
  direction: ltr;
}

.reviews-ticker-track {
  display: inline-flex;
  align-items: stretch;
  gap: 24px;
  animation: trust-ticker-scroll 65s linear infinite;
  padding: 0 var(--gutter);
}

.reviews-ticker-track:hover { animation-play-state: paused; }

.review-chip {
  direction: rtl;
  flex: 0 0 auto;
  width: 380px;
  background: var(--parchment);
  border-top: 3px solid var(--brass);
  border-radius: 2px;
  padding: 32px 30px;
  white-space: normal;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.review-chip .stars {
  color: var(--brass);
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.review-chip p {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-900);
  margin: 0 0 18px;
}

.review-chip span {
  font-size: 13.5px;
  color: var(--slate);
  border-top: 1px solid var(--hairline);
  display: block;
  padding-top: 14px;
}

@media (max-width: 880px) {
  .review-chip { width: 300px; padding: 26px 22px; }
  .reviews-ticker { padding: 40px 0; }
}

/* ---------- מקטעים כלליים ---------- */

section { padding: 88px 0; }

.section-parchment { background: var(--parchment); }
.section-dim { background: var(--parchment-dim); }
.section-ink { background: var(--ink-900); color: var(--parchment); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 28px;
}

.section-ink .section-head { border-color: var(--hairline-dark); }

.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.section-kicker {
  color: var(--brass);
  font-family: var(--sans);
  font-size: 14.5px;
  margin-bottom: 10px;
}

.section-head p {
  max-width: 380px;
  color: var(--slate);
  margin: 0;
  font-size: 15.5px;
}
.section-ink .section-head p { color: #aeb4bd; }

/* ---------- תחומי עיסוק — רשימה עריכתית ---------- */

.practice-list {
  display: grid;
  border-top: 1px solid var(--hairline);
}

.practice-row {
  display: grid;
  grid-template-columns: 280px 1fr 140px;
  gap: 32px;
  align-items: center;
  padding: 30px 4px;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.2s ease;
}

.practice-row:hover { background: rgba(164,128,47,0.06); }

.practice-row h3 {
  font-size: 21px;
}

.practice-row p {
  color: var(--slate);
  font-size: 15px;
  margin: 0;
}

.practice-row .go {
  justify-self: start;
  color: var(--brass);
  font-size: 14.5px;
  border-bottom: 1px solid transparent;
}
.practice-row:hover .go { border-color: var(--brass); }

/* ---------- אודות / פרופיל ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}

.about-portrait {
  background: var(--ink-900);
  aspect-ratio: 4/5;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,26,34,0) 75%, rgba(20,26,34,0.25) 100%);
  pointer-events: none;
}

.credentials {
  margin-top: 28px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}
.credentials dt {
  font-size: 13px;
  color: var(--slate-light);
  margin-top: 14px;
}
.credentials dd {
  font-family: var(--serif);
  font-size: 17px;
  margin: 2px 0 0;
  color: var(--ink-900);
}

.lede-text {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.55;
  color: var(--ink-900);
  max-width: 620px;
}

.body-text p { color: var(--slate); font-size: 16.5px; }

/* ---------- המלצות ---------- */

.testimonial-empty {
  border: 1px dashed var(--hairline);
  padding: 48px;
  text-align: center;
  color: var(--slate);
  border-radius: 2px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
}

.testimonial-card {
  border-right: 3px solid var(--brass);
  padding: 4px 28px;
  margin-bottom: 36px;
}
.testimonial-card q {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink-900);
  quotes: none;
}
.testimonial-card cite {
  display: block;
  font-style: normal;
  color: var(--slate);
  font-size: 14.5px;
  margin-top: 12px;
}

/* ---------- מאמרים ---------- */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.article-card {
  display: block;
  background: var(--parchment);
  padding: 40px;
  transition: background 0.2s ease;
}
.article-card:hover { background: rgba(164,128,47,0.06); }
.article-card h3 { transition: color 0.2s ease; }
.article-card:hover h3 { color: var(--brass); }

.article-tag {
  color: var(--brass);
  font-size: 13.5px;
  margin-bottom: 14px;
}

.article-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.article-card p {
  color: var(--slate);
  font-size: 15px;
}

.article-status {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--slate-light);
  border: 1px solid var(--hairline);
  padding: 5px 12px;
  border-radius: 2px;
}

/* ---------- עמוד מאמר בודד ---------- */

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--brass);
  font-size: 14.5px;
  border-bottom: 1px solid transparent;
}
.back-link:hover { border-color: var(--brass); }

.article-page-head h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  max-width: 760px;
  margin-bottom: 16px;
}

.article-meta {
  color: var(--slate);
  font-size: 14px;
}

.article-body {
  max-width: 700px;
}

.article-body h2 {
  font-size: 23px;
  margin: 44px 0 16px;
}

.article-body p {
  color: var(--ink-800);
  font-size: 17px;
  line-height: 1.85;
  max-width: none;
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-inline-start: 26px;
  color: var(--ink-800);
  font-size: 17px;
  line-height: 1.8;
}

.article-body li { margin-bottom: 12px; }
.article-body strong { color: var(--ink-900); }

.article-cta {
  margin-top: 52px;
  padding: 34px;
  background: var(--parchment-dim);
  border-right: 3px solid var(--brass);
  border-radius: 2px;
  max-width: 700px;
}
.article-cta p { margin-bottom: 20px; }

.related-articles {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  max-width: 700px;
}
.related-articles h3 { font-size: 16px; margin-bottom: 16px; color: var(--slate); font-weight: 400; font-family: var(--sans); }
.related-articles a {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-900);
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.related-articles a:hover { color: var(--brass); }

/* ---------- יצירת קשר ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
}

.contact-detail {
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline-dark);
}
.contact-detail .k {
  font-size: 13.5px;
  color: var(--brass-light);
  margin-bottom: 6px;
}
.contact-detail .v {
  font-family: var(--serif);
  font-size: 19px;
}

.form-field {
  margin-bottom: 22px;
}
.form-field label {
  display: block;
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--parchment);
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink-900);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
.form-field textarea { resize: vertical; min-height: 130px; }

/* ---------- פוטר ---------- */

.site-footer {
  background: var(--ink-900);
  color: #b7bcc4;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline-dark);
}

.footer-grid h4 {
  color: var(--parchment);
  font-size: 15px;
  font-weight: 400;
  font-family: var(--sans);
  margin-bottom: 18px;
}

.footer-grid a {
  display: block;
  font-size: 14.5px;
  color: #9aa0aa;
  margin-bottom: 10px;
}
.footer-grid a:hover { color: var(--brass-light); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #7c828d;
}

/* ---------- כפתור נגישות מיקוד ---------- */

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- מובייל ---------- */

@media (max-width: 880px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--ink-900);
    padding: 8px 12px;
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 14px;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 92px;
    right: 0;
    left: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--hairline);
    padding: 20px var(--gutter) 28px;
    gap: 18px;
  }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figures { border-right: none; border-top: 1px solid rgba(246,243,236,0.18); padding-right: 0; padding-top: 24px; flex-direction: row; flex-wrap: wrap; }
  .about-grid { grid-template-columns: 1fr; }
  .practice-row { grid-template-columns: 1fr; gap: 8px; }
  .articles-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 64px 0; }
}
