/*
Theme Name: לירז יהודאי
Theme URI: https://www.instagram.com/y.liraz_law/
Author: עו״ד לירז יהודאי
Description: אתר בעברית לעורכת הדין לירז יהודאי. דיני משפחה, צוואות וירושות, וקהילת מתחילות מחדש. טלפון, ערים, וואטסאפ ואינסטגרם נערכים במסך «פרטי המשרד».
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: liraz-yehudai
*/

:root {
  --navy: #141625;
  --navy-2: #1c2238;
  --ink: #1c2438;
  --heading: #1e3158;
  --muted: #5c6578;
  --gold: #e0b54c;
  --gold-soft: #eacd72;
  --gold-deep: #8a6a1c;
  --line: #e7e1d4;
  --paper: #ffffff;
  --cream: #f7f4ee;
  --band: #0e1018;
  --faq: #171c33;
  --faq-item: #12162a;
  --danger: #8c2f2f;
  --ok: #1d6b45;
  --shadow: 0 18px 50px rgba(20, 22, 37, 0.14);
  --radius: 18px;
  --header: 92px;
  --max: 1120px;
  --prose: 760px;
  --font: "Assistant", "Segoe UI", "Arial Hebrew", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html.font-lg { font-size: 112.5%; }
html.font-xl { font-size: 125%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 1.0625rem;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  right: 12px;
  top: -40px;
  background: var(--gold-soft);
  color: var(--navy);
  padding: 8px 14px;
  z-index: 20;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.prose {
  width: min(var(--prose), 100%);
  margin-inline: auto;
}

h1, h2, h3 { font-weight: 700; line-height: 1.25; color: var(--heading); }
h1 { font-size: clamp(2rem, 4vw, 3.15rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); margin: 0 0 14px; }
h3 { font-size: 1.2rem; margin: 0 0 6px; }
p { margin: 0 0 1rem; }

.section { padding: 72px 0; }
.section-title { text-align: center; }
.section-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--gold);
}

.lead::first-letter {
  float: right;
  font-size: 4.4rem;
  line-height: 0.78;
  font-weight: 700;
  color: var(--heading);
  padding-left: 10px;
  margin-top: 6px;
}

/* Header — physical layout matches the reference: mark on the left, pill centered */
.header {
  background: var(--navy);
  color: #f6f1e4;
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header);
}
.bar {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 16px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header);
  padding: 10px 0;
}
.brand {
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--gold-soft);
  width: 132px;
}
.brand svg,
.brand img { width: 52px; height: auto; }
.brand-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-top: 2px;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  font-weight: 400;
  opacity: 0.92;
}

.pill {
  direction: rtl;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 4px 8px;
  background: transparent;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #f4efe6;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--gold-soft); }
.has-sub { position: relative; display: flex; align-items: center; }
.caret {
  width: 0;
  height: 0;
  border-inline-start: 4px solid transparent;
  border-inline-end: 4px solid transparent;
  border-top: 5px solid var(--gold-soft);
  display: inline-block;
}
.sub {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: var(--navy-2);
  border: 1px solid rgba(224, 181, 76, 0.45);
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  margin: 0;
  box-shadow: var(--shadow);
  z-index: 5;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub { display: block; }
.sub a { display: block; border-radius: 8px; white-space: normal; }

.head-phone {
  justify-self: end;
  direction: rtl;
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(234, 205, 114, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
}
.head-phone:hover { background: rgba(234, 205, 114, 0.08); }

.burger {
  display: none;
  justify-self: end;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-soft);
  cursor: pointer;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold-soft);
  position: relative;
  margin-inline: auto;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  right: 0;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: var(--navy);
}
.hero.short { min-height: 380px; }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 12, 22, 0.62), rgba(10, 12, 22, 0.28) 42%, rgba(10, 12, 22, 0.48));
}
.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 54px 20px 120px;
  width: min(860px, calc(100% - 32px));
}
.hero.short .hero-copy { padding-bottom: 110px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.hero h1 { color: white; font-weight: 700; }
.hero-sub {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}
.crumbs {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}
.crumbs a { color: white; }

/* Floating consult card */
.consult-wrap {
  position: relative;
  z-index: 4;
  margin-top: -74px;
  padding: 0 20px 10px;
}
.consult {
  width: min(1140px, 100%);
  margin: 0 auto;
  background: white;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px 18px 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.consult-call { min-width: 210px; text-align: right; }
.consult-kicker {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
}
.consult-phone {
  display: inline-block;
  margin-top: 2px;
  color: var(--heading);
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.chev {
  color: var(--gold-deep);
  font-size: 1.4rem;
  line-height: 1;
  user-select: none;
}
.consult form,
.band form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.consult, .band-inner { min-width: 0; }
.field { position: relative; flex: 1; min-width: 0; }
.field label,
.stack label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid #d9d3c6;
  background: #fff;
  border-radius: 8px;
  padding: 12px 12px;
  font-size: 1rem;
  color: var(--ink);
  min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8b90a0; }
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn:hover { background: #242844; }
.btn.gold {
  background: var(--gold);
  color: #1a1608;
}
.btn.gold:hover { background: var(--gold-soft); }
.btn.ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(234, 205, 114, 0.7);
}
.form-note, .fine {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 8px 0 0;
}
.form-status {
  display: none;
  background: #f3faf6;
  border: 1px solid #cfe6d8;
  color: var(--ok);
  border-radius: 12px;
  padding: 12px 14px;
  flex: 1;
}
.form-status.show { display: block; }
.form-status a { color: var(--heading); font-weight: 700; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 20px;
  box-shadow: 0 1px 0 rgba(20, 22, 37, 0.03);
  text-decoration: none;
  display: block;
  height: 100%;
  border-top: 3px solid var(--gold);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card p { color: #3d465c; margin: 0; }
.icon-bubble {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--gold-deep);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.frame {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.caption {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 8px;
}

.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  background: var(--cream);
  border-radius: 14px;
  padding: 14px 16px;
  border-right: 3px solid var(--gold);
}
.checks p { margin: 0; color: #3d465c; }

.voice {
  margin: 18px 0;
  padding: 4px 18px 4px 0;
  border-right: 3px solid var(--gold);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.45;
}

.cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.cities li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: white;
  font-weight: 600;
  color: var(--heading);
}

.muted-panel {
  background: var(--cream);
  border-radius: 16px;
  padding: 22px 22px 8px;
}

/* CTA band */
.band {
  background: var(--band);
  color: white;
  padding: 28px 0;
}
.band-inner {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.band h2 { color: white; font-size: 1.45rem; margin: 0; }
.band p { margin: 4px 0 0; color: rgba(255,255,255,.82); }
.band .consult-phone { color: var(--gold-soft); }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(234, 205, 114, 0.7);
  display: grid;
  place-items: center;
  color: var(--gold-soft);
}
.socials a:hover { background: rgba(234, 205, 114, 0.12); }
.band input { background: #fff; }
.band .form-status { background: #102117; color: #d7f5e4; border-color: #1d6b45; }

/* FAQ */
.faq {
  background: var(--faq);
  color: white;
  padding: 64px 0 72px;
}
.faq h2 { color: white; text-align: center; }
.faq h2::after { background: var(--gold); }
.faq-list { width: min(860px, calc(100% - 32px)); margin: 26px auto 0; display: grid; gap: 10px; }
.faq-item {
  background: var(--faq-item);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--gold-soft);
  border-bottom: 2px solid var(--gold-soft);
  transform: rotate(-45deg);
  flex: none;
  margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(135deg); margin-top: 4px; }
.faq-item .faq-a { padding: 0 18px 16px; color: rgba(255,255,255,0.88); }
.faq-item .faq-a p { margin: 0; }
.header :focus-visible,
.faq :focus-visible,
.band :focus-visible { outline-color: var(--gold-soft); }

/* Footer */
.footer {
  background: #0c0e16;
  color: rgba(255,255,255,0.82);
  padding: 48px 0 24px;
}
.footer-grid {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 28px;
}
.footer h2 { color: var(--gold-soft); font-size: 1.05rem; }
.footer a { color: white; text-decoration: none; }
.footer a:hover { color: var(--gold-soft); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.legal {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
}
.footer .brand { align-items: flex-start; width: auto; }
.footer .brand-name, .footer .brand-sub { letter-spacing: 0.04em; }

/* Floaters */
.wa, .a11y-btn {
  position: fixed;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  bottom: 22px;
}
.wa { right: 22px; background: #25d366; color: white; }
.a11y-btn {
  left: 22px;
  background: #1d4e89 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><circle cx='12' cy='4.4' r='2.05'/><path d='M4 9.3c2.3-.7 4.6-1 8-1s5.7.3 8 1l-.55 1.65c-1.7-.45-3.9-.75-7.45-.75s-5.75.3-7.45.75L4 9.3z'/><path d='M10.15 12.1h3.7V20h-1.65v-4.3h-.4V20H10.15V12.1z'/></svg>") center / 28px 28px no-repeat;
  color: transparent;
  border: 0;
  cursor: pointer;
}
.a11y-btn svg { display: none; }
.a11y-panel {
  position: fixed;
  z-index: 41;
  left: 22px;
  bottom: 90px;
  width: min(280px, calc(100% - 32px));
  background: white;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px;
  border: 1px solid var(--line);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1.05rem; margin-bottom: 8px; }
.a11y-actions { display: grid; gap: 8px; }
.a11y-actions button {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  font-weight: 600;
}

.stack { display: grid; gap: 10px; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.contact-card {
  background: var(--cream);
  border-radius: 18px;
  padding: 22px;
}
.contact-card a.big {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.gallery .mark {
  background: #fff8f6;
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 18px;
}
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.service {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: white;
}

html.contrast body { background: #000; color: #fff; }
html.contrast h1,
html.contrast h2,
html.contrast h3,
html.contrast .card p,
html.contrast .checks p,
html.contrast .form-note { color: #fff; }
html.contrast .card,
html.contrast .service,
html.contrast .contact-card,
html.contrast .checks li,
html.contrast .muted-panel,
html.contrast .consult { background: #000; border-color: #fff; color: #fff; }
html.contrast a { text-decoration: underline; }
html.contrast .header,
html.contrast .footer,
html.contrast .faq,
html.contrast .band,
html.contrast .hero { background: #000; }
html.contrast .faq-item { background: #000; border-color: #fff; }

@media (max-width: 1100px) {
  .bar { grid-template-columns: 1fr auto; }
  .head-phone { display: none; }
  .burger { display: grid; place-items: center; }
  .pill {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    border-radius: 16px;
    background: var(--navy-2);
    padding: 10px;
  }
  body.nav-open .pill { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 12px; }
  .sub { position: static; display: block; border: 0; box-shadow: none; background: transparent; padding: 0 8px 8px; }
  .has-sub { flex-direction: column; align-items: stretch; }
  .grid-3, .split, .contact-grid, .gallery, .footer-grid, .services { grid-template-columns: 1fr; }
  .consult, .consult form, .band-inner, .band form { flex-direction: column; align-items: stretch; }
  .consult-call { text-align: center; }
  .chev { display: none; }
  .hero { min-height: 480px; }
  .hero.short { min-height: 340px; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .lead::first-letter { font-size: 3.4rem; }
  .wa, .a11y-btn { width: 52px; height: 52px; bottom: 16px; }
  .wa { right: 14px; }
  .a11y-btn { left: 14px; }
  .brand { width: 112px; }
  .brand img { width: 44px; }
  .hero { min-height: 430px; }
  .hero-copy { padding: 36px 16px 88px; }
  .consult { padding-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}

/* Desktop hero shows the full standing portrait, same figure as the mobile crop. */
@media (min-width: 901px) {
  .hero {
    min-height: 92vh;
    background: #0c0e16;
  }
  .hero.short {
    min-height: 82vh;
  }
  .hero-img {
    inset: 0 auto 0 50%;
    width: auto;
    height: 100%;
    max-width: none;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center center;
  }
  .hero-copy {
    padding-top: 8vh;
    padding-bottom: 18vh;
  }
}
