/* מיכה קורמן — site styles
   Palette pulled from the logo: slate wordmark + taupe signature. */
:root {
  --ink: #2c3644;          /* slate, logo wordmark */
  --ink-soft: #55606f;
  --taupe: #a8977d;        /* signature stroke */
  --taupe-deep: #7d6d54;   /* taupe dark enough for text on white */
  --rule: #dcd8cf;
  --paper: #f5f5f3;        /* cool off-white */
  --white: #ffffff;
  --studio: #55585d;       /* matches the portrait's backdrop */
  --studio-dark: #3d4044;
  --wa: #1f7a4d;

  --display: "David Libre", "Frank Ruhl Libre", serif;
  --body: "IBM Plex Sans Hebrew", "Arial Hebrew", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: 2.3rem;
  --step-4: clamp(2.4rem, 5.2vw, 3.9rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.7;
  direction: rtl;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--taupe); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; background: var(--white); padding: 8px 14px; z-index: 10; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: 0; }
p { margin: 0 0 1em; }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: var(--step--1); color: var(--ink-soft);
  padding: 8px 12px; border-radius: 4px;
}
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--taupe); border-radius: 0; }
.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 var(--step-0)/1 var(--body);
  padding: 15px 22px; border-radius: 4px; text-decoration: none; border: 0; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa, .nav a.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #18633e; }
.btn-line { color: inherit; box-shadow: inset 0 0 0 1px currentColor; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 10px 14px; font-size: var(--step--1); }

/* ---------- hero (home) ---------- */
/* The portrait's studio backdrop is light behind the head and dark at the edges;
   the hero background continues that falloff so the photo melts into it. */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(60% 120% at 30% 45%, #6b6d6f 0%, #4a4a4c 45%, #343233 100%);
}
.hero .wrap { min-height: min(660px, 84vh); display: flex; align-items: center; }
.hero-text { position: relative; z-index: 1; padding-block: 80px; max-width: 50%; }
.hero-name { font: 400 var(--step-1)/1.3 var(--display); color: #d9cfbf; margin-bottom: 18px; }
.hero h1 { font-size: var(--step-4); }
.hero h1 span { display: block; }
.hero-lede { font-size: var(--step-1); line-height: 1.6; color: #e4e5e7; max-width: 34ch; margin: 24px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: absolute; inset-block: 0; left: 0; width: 52%; margin: 0; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 98%);
          mask-image: linear-gradient(to right, #000 55%, transparent 98%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-photo img { animation: fade 1.2s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes fade { from { opacity: 0; } }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-paper { background: var(--paper); }
.section h2 { font-size: var(--step-3); margin-bottom: 28px; }
.lead { font-size: var(--step-1); line-height: 1.6; max-width: 40ch; color: var(--ink-soft); }

/* practice index: rows, not cards */
.practices { border-top: 1px solid var(--ink); margin-top: 8px; }
.practice {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 40px; align-items: start;
  padding-block: 40px; border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.practice img { width: 220px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; filter: saturate(.75); }
.practice h3 { font-size: var(--step-2); margin-bottom: 10px; }
.practice p { color: var(--ink-soft); max-width: 58ch; margin: 0; }
.practice .more { font-size: var(--step--1); color: var(--taupe-deep); white-space: nowrap; align-self: center; text-decoration: underline; text-underline-offset: 4px; }
.practice:hover h3 { color: var(--taupe-deep); }
.practice:hover img { filter: none; }

/* about strip */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-grid .body { max-width: var(--measure); }
.facts { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid var(--taupe); padding-inline-start: 24px; }
.facts li { padding-block: 10px; }
.facts li + li { border-top: 1px solid var(--rule); }
.facts strong { display: block; font-family: var(--display); font-size: var(--step-1); font-weight: 700; }
.facts span { color: var(--ink-soft); font-size: var(--step--1); }
.text-link { color: var(--taupe-deep); text-underline-offset: 4px; font-weight: 500; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 4vw, 56px); }
.quote { margin: 0; padding-block: 24px 32px; border-top: 1px solid var(--rule); }
.quote blockquote { margin: 0 0 14px; font: 400 var(--step-1)/1.55 var(--display); }
.quote figcaption { font-size: var(--step--1); color: var(--ink-soft); }
.quote-feature { grid-column: span 2; grid-row: span 2; border-top: 2px solid var(--ink); padding-inline-end: 4%; }
.quote-feature blockquote { font-size: var(--step-3); line-height: 1.3; max-width: 24ch; }

/* contact band */
.contact-band { background: var(--ink); color: var(--white); }
.contact-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-band h2 { color: var(--white); }
.contact-band p { color: #c9ced6; max-width: 40ch; }
.contact-lines { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-lines li { padding-block: 10px; border-top: 1px solid rgba(255,255,255,.15); }
.contact-lines a { text-decoration: none; font-size: var(--step-1); }
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-lines span { display: block; font-size: var(--step--1); color: #9aa3ae; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: var(--step--1); color: #c9ced6; }
.form input, .form textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid transparent; border-radius: 4px; padding: 12px 14px; width: 100%;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--taupe); outline-offset: 0; }
.form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: var(--step--1); color: #9aa3ae; margin: 0; }
.form-error { color: #ffd3c4; font-size: var(--step--1); margin: 0; min-height: 1.2em; }
.on-light .form label, .on-light .form-note { color: var(--ink-soft); }
.on-light .form input, .on-light .form textarea { border-color: #c6c1b6; }
.on-light .form-error { color: #a33a1c; }

/* ---------- inner pages ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: end; padding-top: 56px; }
.page-head h1 { font-size: var(--step-4); }
.page-head .head-text { padding-bottom: 56px; }
.page-head .intro { font-size: var(--step-1); color: var(--ink-soft); max-width: 44ch; margin-top: 20px; line-height: 1.6; }
.page-head img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 2px 2px 0 0; }

.page-body .wrap { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin: 56px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-inline-start: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--taupe); }

.fields { margin: 0; border-top: 1px solid var(--ink); }
.fields > div { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.fields dt { font-family: var(--display); font-weight: 700; font-size: var(--step-1); line-height: 1.35; }
.fields dd { margin: 0; color: var(--ink-soft); }

.why { background: var(--paper); border-inline-start: 3px solid var(--taupe); padding: 24px 28px; margin-top: 48px; }
.why h2 { margin: 0 0 10px; font-size: var(--step-2); }
.why p { margin: 0; }

.aside-card { position: sticky; top: 24px; border: 1px solid var(--rule); padding: 28px; }
.aside-card h2 { font-size: var(--step-1); margin-bottom: 10px; }
.aside-card p { color: var(--ink-soft); font-size: var(--step--1); }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-card .phone { display: block; text-align: center; margin-top: 14px; font-size: var(--step--1); color: var(--ink-soft); }

.about-photo { background: var(--paper); }
.about-photo img { max-width: 360px; margin-inline: auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 36px; font-size: var(--step--1); color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* floating WhatsApp on mobile */
.wa-float { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { min-height: 0; flex-direction: column; align-items: stretch; padding-inline: 0; }
  .hero-text { padding: 48px var(--gutter) 0; max-width: none; }
  .hero-photo { position: relative; width: 100%; margin-top: -24px; }
  .hero-photo img { height: auto; aspect-ratio: 1 / 1; max-width: 560px; margin-inline: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); }
  .about-grid, .contact-band .wrap, .page-body .wrap { grid-template-columns: 1fr; }
  .practice { grid-template-columns: 140px 1fr; gap: 24px; }
  .practice img { width: 140px; }
  .practice .more { grid-column: 2; justify-self: start; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote-feature { grid-row: auto; }
  .page-head .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .page-head .head-text { padding-bottom: 32px; }
  .page-head img { max-height: 280px; aspect-ratio: auto; }
  .aside-card { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; font: 500 var(--step--1) var(--body);
    background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 9px 12px; color: var(--ink); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--rule);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; font-size: var(--step-0); border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--taupe-deep); }
  .nav .btn { margin-top: 12px; justify-content: center; }
  .brand img { width: 124px; }
  .quotes { grid-template-columns: 1fr; }
  .quote-feature { grid-column: auto; }
  .fields > div { grid-template-columns: 1fr; gap: 4px; }
  .practice { grid-template-columns: 1fr; }
  .practice img { width: 100%; aspect-ratio: 16 / 9; }
  .practice .more { grid-column: 1; }
  .wa-float {
    display: inline-flex; position: fixed; bottom: 16px; inset-inline-start: 16px; z-index: 20;
    width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: var(--white);
    align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25);
  }
  .wa-float svg { width: 28px; height: 28px; }
}
