/* ============================================================
   Mazor Law Office — stylesheet
   Palette sampled from the logo. Single-theme by design (brand
   navy + paper), sharp corners, hairline borders, one accent.
   ============================================================ */

/* ---- Fonts (self-hosted Heebo, variable 300–800) ---- */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/heebo-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/heebo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ---- */
:root {
  --navy: #02071b;          /* logo ground */
  --navy-2: #0b1836;        /* elevated dark surface */
  --navy-line: #1c2c55;     /* hairlines on dark */
  --blue: #3272d9;          /* accent */
  --blue-hi: #66a3f2;       /* gradient end */
  --blue-ink: #1d54ae;      /* accessible accent on light */
  --silver: #c7cfdd;        /* secondary text on dark */
  --paper: #f7f9fc;         /* light ground, blue-biased */
  --white: #ffffff;
  --ink: #131c2e;           /* body text on light */
  --ink-soft: #45526b;      /* secondary on light */
  --line: #dfe5ef;          /* hairlines on light */
  --wa: #25d366;            /* WhatsApp only */
  --wa-dark: #128c4b;

  --font: 'Heebo', 'Segoe UI', 'Arial Hebrew', system-ui, sans-serif;
  --font-quote: Georgia, 'Times New Roman', serif;

  --measure: 46rem;         /* running-text width */
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 4.25rem;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-ink); }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--blue-hi);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute; top: -4rem; inset-inline-start: 1rem;
  background: var(--navy); color: #fff; padding: .6rem 1.2rem;
  z-index: 200; transition: top .2s;
}
.skip-link:focus { top: .5rem; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav-inner {
  width: min(1120px, 100%); margin-inline: auto;
  padding-inline: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo img { height: 2.6rem; width: auto; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--silver); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding-block: .35rem; border-bottom: 2px solid transparent; transition: color .2s;
}
.nav-links a:hover { color: #fff; border-bottom-color: var(--blue); }
.nav-burger {
  display: none; background: none; border: 1px solid var(--navy-line);
  color: var(--silver); font: inherit; padding: .4rem .7rem; cursor: pointer;
}

/* ---- Sections scaffolding ---- */
section { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: var(--measure); }
.section.alt { background: var(--white); }
.section.dark { background: var(--navy); color: var(--silver); }
.section.dark h2 { color: #fff; }

/* Section header: EN eyebrow + Hebrew title + M-stroke motif */
.sec-head { margin-block-end: clamp(1.75rem, 4vw, 2.75rem); }
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .35em;
  text-transform: uppercase; color: var(--blue-ink);
  direction: ltr; unicode-bidi: isolate; display: inline-block;
}
.section.dark .eyebrow { color: var(--blue-hi); }
.sec-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 700; margin-block-start: .3rem; }
.kav { display: flex; gap: .4rem; margin-block-start: .9rem; }
.kav i {
  width: 1.9rem; height: .22rem; transform: skewX(-30deg);
  background: linear-gradient(90deg, var(--blue), var(--blue-hi));
}
.kav i:last-child { width: .9rem; opacity: .55; }

/* ---- Hero ---- */
.hero { background: var(--navy); color: var(--silver); }
.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.75rem, 7vw, 5rem);
}
.hero-visual {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-visual::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 46% 42%, transparent 55%, var(--navy) 100%);
}
.hero h1 {
  color: #fff; font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.01em;
  margin-block-end: .35rem;
}
.hero-role { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; color: var(--silver); }
.hero-tagline {
  margin-block-start: 1.3rem; max-width: 34rem;
  font-size: clamp(.98rem, 1.6vw, 1.1rem); font-weight: 300; color: #b0bedc;
  border-inline-start: 3px solid var(--blue); padding-inline-start: 1rem;
}
.hero-tagline em { font-style: normal; font-weight: 600; color: var(--blue-hi); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-block-start: 2rem; }

/* ---- Quote band ---- */
.quote-band { background: var(--navy); padding-block: clamp(2.25rem, 5vw, 3.25rem); border-block-start: 1px solid var(--navy-line); }
.hero-quote {
  max-width: 34rem; margin-inline: auto; text-align: center;
  font-family: var(--font-quote); font-style: italic;
  direction: ltr; unicode-bidi: isolate;
  color: #9fb0cd; font-size: 1.05rem; line-height: 1.6;
}
.hero-quote .he {
  display: block; font-family: var(--font); font-style: normal;
  direction: rtl; font-size: .88rem; margin-top: .35rem; color: #64779c;
}


/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: .8rem 1.7rem; border-radius: 2px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn-wa { background: var(--wa); color: #06341a; }
.btn-wa:hover { background: #3adf78; box-shadow: 0 6px 24px rgba(37,211,102,.25); }
.btn-ghost { border-color: #3c4d77; color: #dbe4f2; background: transparent; }
.btn-ghost:hover { border-color: var(--blue-hi); color: #fff; }
.btn-silver {
  background: linear-gradient(135deg, #f4f6f9 0%, #cad2e1 55%, #98a3b8 100%);
  color: var(--navy); border-color: #9aa6bb;
}
.btn-silver:hover {
  background: linear-gradient(135deg, #ffffff 0%, #d7deea 55%, #a9b4c8 100%);
  box-shadow: 0 6px 20px rgba(120, 135, 165, .35);
}

/* ---- About / Founder ---- */
.lead { font-size: 1.15rem; font-weight: 300; }
.prose > p + p { margin-block-start: 1rem; }

.founder-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.portrait {
  aspect-ratio: 2 / 3; background: var(--navy);
  border: 1px solid var(--line); overflow: hidden;
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
}

/* ---- Approach (dark manifesto) ---- */
.approach-cols {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.approach-cols .prose { color: #aab8d2; font-weight: 300; }
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.value-list li {
  display: flex; gap: .8rem; align-items: start;
  background: var(--navy-2); border: 1px solid var(--navy-line);
  padding: .9rem 1.1rem; color: #dbe4f2; font-weight: 400;
}
.value-list .tick {
  flex: none; width: .55rem; height: 1.05rem; margin-block-start: .45rem;
  border-right: 2.5px solid var(--blue-hi);
  border-bottom: 2.5px solid var(--blue-hi);
  transform: rotate(45deg);
}
.approach-close { margin-block-start: 1.6rem; color: #8fa2c4; font-weight: 300; }

/* ---- Practice areas ---- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card {
  background: var(--white); border: 1px solid var(--line);
  padding: 1.8rem 1.6rem 2rem; position: relative;
}
.card::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-hi));
  transform: scaleX(.35); transform-origin: right; transition: transform .35s;
}
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-block-end: .6rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ---- Testimonials ---- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
/* Cards share a row height while collapsed; once one is expanded they size to content */
.quotes.has-expanded { align-items: start; }
.quote {
  background: var(--paper); border: 1px solid var(--line);
  padding: 1.6rem 1.6rem 1.4rem; position: relative;
}
.quote p { font-weight: 300; font-size: 1.02rem; }
.quote p + p { margin-block-start: .8rem; }
.quote p em { font-style: normal; font-weight: 600; color: var(--blue-ink); }
.quote ul { margin: .8rem 0; padding-inline-start: 1.3rem; font-weight: 300; font-size: 1.02rem; }
.quote li { margin-block-end: .45rem; }
.quote footer { margin-block-start: .9rem; font-weight: 600; font-size: .9rem; color: var(--blue-ink); }

/* Long testimonials collapse to a fixed height until "הצג עוד" is pressed (JS-added) */
.quote-body { position: relative; }
.is-clamped .quote-body { max-height: 10.5rem; overflow: hidden; }
.is-clamped .quote-body::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 3rem;
  background: linear-gradient(to top, #f7f9fc, rgba(247, 249, 252, 0));
  pointer-events: none;
}
.quote-more {
  margin-block-start: .7rem; padding: 0; border: 0; background: none;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--blue-ink);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.quote-more:hover { color: var(--blue); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.contact-panel {
  background: var(--white); border: 1px solid var(--line);
  padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start;
}
.contact-panel h3 { font-size: 1.25rem; font-weight: 700; }
.contact-panel .hint { color: var(--ink-soft); font-size: .95rem; }
.contact-detail { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.contact-panel .btn { margin-block-start: auto; }
.contact-meta {
  margin-block-start: 1.25rem; padding: 1.1rem 1.8rem;
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .4rem 2.5rem;
  color: var(--ink-soft); font-size: .95rem;
}
.contact-meta strong { color: var(--ink); font-weight: 600; }
.nums { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ---- Footer ---- */
.footer {
  background: var(--navy); color: #64779c;
  padding-block: 2.5rem; font-size: .88rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; justify-content: space-between;
}
.footer img { height: 3.2rem; width: auto; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links span { color: #4a5d85; }

/* ---- Floating WhatsApp ---- */
.wa-float {
  position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 90;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center;
  box-shadow: 0 8px 28px rgba(2, 7, 27, .35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 1.9rem; height: 1.9rem; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card::before { transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .founder-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; }
  .approach-cols { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); inset-inline: 0;
    background: var(--navy); border-bottom: 1px solid var(--navy-line);
    flex-direction: column; gap: 0; padding: .5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .8rem var(--pad); border-bottom: none; }
}
