/* ============================================================
   כהן, לוי ושות׳ — אתר דמו לעורך דין
   Editorial-light: ivory, graphite, deep teal + brass accents
   ============================================================ */

:root {
  --ivory: #faf8f4;
  --paper: #ffffff;
  --ink: #1c2321;
  --ink-soft: #4a5552;
  --line: #e6e1d7;
  --teal: #0f5c55;
  --teal-deep: #0a4540;
  --teal-tint: #eef4f2;
  --brass: #b08d44;
  --brass-soft: #f4ecdd;

  --font-display: "Frank Ruhl Libre", "Times New Roman", serif;
  --font-body: "Assistant", "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow-soft: 0 6px 24px rgba(28, 35, 33, 0.07);
  --shadow-lift: 0 14px 40px rgba(28, 35, 33, 0.12);
  --container: 1180px;
  --transition: 0.3s cubic-bezier(0.25, 0.6, 0.3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100%; inset-inline-start: 1rem;
  background: var(--teal); color: #fff;
  padding: 0.6rem 1.2rem; border-radius: 0 0 10px 10px;
  z-index: 200; transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1.05rem;
  padding: 0.85rem 1.9rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background-color var(--transition), color var(--transition);
}
.btn-primary {
  background: var(--teal); color: #fff;
  box-shadow: 0 6px 18px rgba(15, 92, 85, 0.3);
}
.btn-primary:hover {
  background: var(--teal-deep); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 92, 85, 0.38);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--teal); color: var(--teal);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(28, 35, 33, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
  transition: padding var(--transition);
}
.site-header.is-scrolled .header-inner { padding-block: 0.55rem; }

.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--ink);
}
.brand-mark { color: var(--teal); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
}
.brand-text small {
  font-size: 0.78rem; letter-spacing: 0.22em; color: var(--brass);
  font-weight: 600;
}

.main-nav ul {
  display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
}
.main-nav a {
  color: var(--ink-soft); font-weight: 500; font-size: 1rem;
  padding-block: 0.35rem; position: relative;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0;
  height: 2px; background: var(--brass);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--transition);
}
.main-nav a:not(.nav-cta):hover { color: var(--ink); }
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--teal); color: #fff !important;
  padding: 0.55rem 1.4rem; border-radius: 999px; font-weight: 600;
  transition: background-color var(--transition);
}
.nav-cta:hover { background: var(--teal-deep); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span {
  width: 26px; height: 2.5px; background: var(--ink);
  border-radius: 2px; transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background: var(--teal-deep);
}
/* Readability scrim: opaque behind the text (right, in RTL) → clear video on the left */
.hero-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to left,
      var(--ivory) 0%,
      rgba(250, 248, 244, 0.94) 28%,
      rgba(250, 248, 244, 0.6) 52%,
      rgba(250, 248, 244, 0.2) 76%,
      rgba(250, 248, 244, 0) 100%),
    linear-gradient(to top,
      rgba(250, 248, 244, 0.55) 0%,
      rgba(250, 248, 244, 0) 38%);
}
/* Sound toggle (shown only when autoplay-with-sound is blocked) */
.hero-sound {
  position: absolute; z-index: 3;
  bottom: clamp(1.2rem, 3vw, 2rem); right: clamp(1.2rem, 3vw, 2rem);
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem; border-radius: 999px;
  background: rgba(15, 92, 85, 0.92); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lift);
  transition: transform var(--transition), background-color var(--transition);
}
.hero-sound:hover { transform: translateY(-2px); background: var(--teal-deep); color: #fff; }
.hero-sound[hidden] { display: none; }
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.4rem;
  background: var(--brass-soft);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.3rem;
}
.hero h1 em {
  font-style: normal; color: var(--teal); position: relative;
}
.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-stats {
  display: flex; gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.hero-stats dt {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--teal);
  line-height: 1.1;
}
.hero-stats dd { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Sections (shared) ---------- */
.section { padding-block: clamp(3.8rem, 8vw, 6.5rem); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-eyebrow {
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--brass); text-transform: uppercase;
  margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.section-eyebrow::before {
  content: ""; width: 2.2rem; height: 2px; background: var(--brass);
  display: inline-block;
}
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 0.8rem; }
.section-sub { color: var(--ink-soft); font-size: 1.13rem; }

/* ---------- Areas ---------- */
.areas { background: var(--paper); border-block: 1px solid var(--line); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(15, 92, 85, 0.35);
}
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  background: var(--teal-tint); color: var(--teal);
  border-radius: 14px;
  margin-bottom: 1.2rem;
  transition: background-color var(--transition), color var(--transition);
}
.card:hover .card-icon { background: var(--teal); color: #fff; }
.card h3 { font-size: 1.32rem; margin-bottom: 0.55rem; }
.card p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- About ---------- */
.about-inner {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.about-figure { position: relative; }
.about-photo {
  background: var(--teal-tint);
  border-radius: var(--radius);
  color: var(--teal);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.about-badge {
  position: absolute; bottom: -1.2rem; inset-inline-start: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  padding: 0.8rem 1.3rem;
  display: flex; flex-direction: column; line-height: 1.4;
}
.about-badge strong { font-size: 1rem; }
.about-badge span { font-size: 0.85rem; color: var(--brass); font-weight: 600; }
.about-content p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-values {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 1.8rem;
}
.about-values li {
  border-inline-start: 3px solid var(--brass);
  padding-inline-start: 0.9rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.about-values strong { font-size: 1.02rem; }
.about-values span { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Why strip ---------- */
.why { padding-block: 0; }
.why-strip {
  list-style: none;
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
}
.why-strip li {
  background: var(--teal);
  padding: 2rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  position: relative;
  transition: background-color var(--transition);
}
.why-strip li:hover { background: var(--teal-deep); }
.why-strip li + li::before {
  content: ""; position: absolute; inset-block: 1.4rem; inset-inline-start: 0;
  width: 1px; background: rgba(255, 255, 255, 0.2);
}
.why-icon { color: var(--brass-soft); margin-bottom: 0.5rem; }
.why-strip strong { font-size: 1.08rem; }
.why-strip li > span:last-child { font-size: 0.92rem; opacity: 0.75; }

/* ---------- Process ---------- */
.process-steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.process-steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.5rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.process-steps li:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.step-num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 2.4rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brass);
  display: block; margin-bottom: 0.9rem;
}
.process-steps h3 { font-size: 1.22rem; margin-bottom: 0.45rem; }
.process-steps p { color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--paper); border-block: 1px solid var(--line); }
.quotes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.quote {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.6rem;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.quote::before {
  content: "”";
  font-family: var(--font-display);
  font-size: 4.4rem; line-height: 0.6;
  color: var(--brass);
  display: block;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.quote p { color: var(--ink-soft); font-size: 1.02rem; flex: 1; }
.quote footer {
  margin-top: 1.4rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.quote cite { font-style: normal; font-weight: 700; font-size: 1rem; }
.quote footer span { font-size: 0.88rem; color: var(--brass); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] { border-color: rgba(15, 92, 85, 0.4); box-shadow: var(--shadow-soft); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; font-size: 1.08rem;
  padding: 1.15rem 1.4rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-inline-end: 2.5px solid var(--brass);
  border-bottom: 2.5px solid var(--brass);
  transform: rotate(45deg);
  transition: transform var(--transition);
  margin-top: -4px;
}
.faq-item[open] .faq-chevron { transform: rotate(225deg); margin-top: 4px; }
.faq-item > p {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---------- Contact ---------- */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-details { font-style: normal; display: grid; gap: 0.9rem; margin-bottom: 2rem; }
.contact-details p { display: flex; flex-direction: column; }
.contact-details strong {
  font-size: 0.85rem; letter-spacing: 0.1em; color: var(--brass);
  text-transform: uppercase;
}
.contact-details a, .contact-details span { font-size: 1.12rem; color: var(--ink); }
.contact-details a:hover { color: var(--teal); }
.contact-map {
  background: var(--teal-tint); color: var(--teal);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}

.contact-form {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.contact-form h3 { font-size: 1.45rem; margin-bottom: 1.4rem; }
.form-field { margin-bottom: 1.15rem; }
.form-field label {
  display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 0.35rem;
}
.form-field label span { color: var(--brass); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 1.02rem; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 92, 85, 0.14);
}
.form-field input[aria-invalid="true"] { border-color: #b3382f; }
.form-error { display: block; color: #b3382f; font-size: 0.88rem; min-height: 1.2em; margin-top: 0.2rem; }
.form-note {
  font-size: 0.9rem; color: var(--ink-soft); text-align: center; margin-top: 0.9rem;
}
.form-success {
  margin-top: 1rem; text-align: center;
  background: var(--teal-tint); color: var(--teal-deep);
  border: 1px solid rgba(15, 92, 85, 0.3);
  border-radius: 10px; padding: 0.8rem 1rem; font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255, 255, 255, 0.8);
  padding-block: 2.8rem;
}
.footer-inner {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 2rem; align-items: center;
}
.footer-brand { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand strong {
  font-family: var(--font-display); font-size: 1.3rem; color: #fff;
}
.footer-brand span { font-size: 0.82rem; letter-spacing: 0.2em; color: var(--brass); }
.footer-nav { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, 0.75); font-size: 0.98rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal { font-size: 0.85rem; text-align: end; line-height: 1.6; }
.footer-legal em { color: rgba(255, 255, 255, 0.5); font-style: normal; }

/* ---------- Floating actions ---------- */
.floating-actions {
  position: fixed; bottom: 1.4rem; inset-inline-end: 1.4rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  z-index: 90;
}
.fab {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  box-shadow: var(--shadow-lift);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab:hover { transform: translateY(-4px) scale(1.06); }
.fab-whatsapp { background: #25d366; color: #fff; }
.fab-whatsapp:hover { color: #fff; }
.fab-phone { background: var(--teal); color: #fff; }
.fab-phone:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.6, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* Single column over full-width video: lighter scrim so the video stays
     clearly visible; legibility comes from a soft halo on the text below. */
  .hero-bg {
    background:
      linear-gradient(to top,
        rgba(250, 248, 244, 0.9) 0%,
        rgba(250, 248, 244, 0.6) 34%,
        rgba(250, 248, 244, 0.38) 66%,
        rgba(250, 248, 244, 0.24) 100%);
  }
  .hero h1, .hero-sub, .hero-stats dt, .hero-stats dd {
    text-shadow: 0 1px 12px rgba(250, 248, 244, 0.85), 0 1px 3px rgba(250, 248, 244, 0.9);
  }
  .about-inner { grid-template-columns: 1fr; }
  .about-figure { max-width: 420px; }
  .why-strip { grid-template-columns: repeat(2, 1fr); }
  .why-strip li + li::before { display: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-legal { text-align: center; }
}

@media (max-width: 760px) {
  body { font-size: 1.05rem; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; inset-inline: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .main-nav.is-open { max-height: 28rem; }
  .main-nav ul {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.8rem 1.4rem 1.4rem;
  }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: 0; padding-top: 0.9rem; }
  .main-nav a { display: block; padding-block: 0.85rem; font-size: 1.08rem; }
  .nav-cta { text-align: center; }

  .hero-stats { flex-wrap: wrap; gap: 1.4rem 2.2rem; }
  .about-values { grid-template-columns: 1fr; }
  .why-strip { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}
