/* =====================================================================
   Inbal Law Office — public site theme (RTL, Hebrew)
   Clean & professional. Navy + warm gold accents.
   ===================================================================== */
:root {
  --navy:        #16273f;
  --navy-2:      #1f3557;
  --gold:        #b08d57;
  --gold-dark:   #96763f;
  --ink:         #26313d;
  --muted:       #6a7482;
  --line:        #e6e8ec;
  --bg:          #ffffff;
  --bg-soft:     #f6f7f9;
  --bg-navy:     #16273f;
  --white:       #ffffff;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 2px 10px rgba(22,39,63,.06);
  --shadow-md:   0 10px 30px rgba(22,39,63,.10);
  --maxw:        1180px;
  --header-h:    76px;
  --font:        'Heebo', -apple-system, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--navy); font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 58px 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }

.eyebrow {
  display: inline-block; color: var(--gold-dark); font-weight: 600;
  letter-spacing: .12em; font-size: 14px; margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); }
.section-title.on-dark { color: #fff; }
.divider { width: 62px; height: 3px; background: var(--gold); border-radius: 3px; margin: 14px auto 0; }
.divider.right { margin: 14px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  cursor: pointer; border: 2px solid transparent; transition: .18s ease; font-family: inherit;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }

/* Simple inline "read more" text link with a moving arrow. */
.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--gold-dark); font-weight: 600; font-size: 16px;
}
.text-link::after { content: "←"; transition: transform .15s ease; }
.text-link:hover { color: var(--gold); }
.text-link:hover::after { transform: translateX(-5px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; color: var(--navy); font-size: 19px; }
.brand-tag { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-weight: 500; color: var(--ink); font-size: 16px;
  transition: .15s;
}
.main-nav a:hover { color: var(--gold-dark); }
.main-nav a.active { color: var(--gold-dark); }
.main-nav a.active::after {
  content: ""; display: block; height: 2px; background: var(--gold); border-radius: 2px; margin-top: 3px;
}
.nav-cta { margin-inline-start: 8px; padding: 9px 20px !important; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  color: #fff; background-size: cover; background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  /* Darkest on the RIGHT — that's where the RTL hero text sits, so copy stays
     readable over any uploaded photo while the left of the image shows through. */
  background: linear-gradient(90deg, rgba(16,25,42,.30) 0%, rgba(16,25,42,.55) 45%, rgba(16,25,42,.85) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-flex { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero-inner { max-width: 640px; padding: 60px 0; }

/* Circular portrait floating over the hero background (left side, opposite the text). */
.hero-portrait { flex: 0 0 auto; margin: 0; }
.hero-portrait img {
  width: 320px; height: 320px; border-radius: 50%; object-fit: cover; object-position: top center;
  border: 6px solid rgba(255,255,255,.92); background: var(--navy-2);
  box-shadow: 0 0 0 3px var(--gold), 0 22px 55px rgba(0,0,0,.45);
}
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); line-height: 1.15; margin-bottom: 18px; }
.hero .hero-sub { font-size: clamp(17px, 2.2vw, 21px); color: rgba(255,255,255,.9); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge { color: var(--gold); font-weight: 600; letter-spacing: .14em; margin-bottom: 16px; display: inline-block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; min-height: 300px; display: flex; align-items: center; color: #fff;
  background-size: cover; background-position: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,25,42,.85), rgba(16,25,42,.55));
}
.page-hero .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); }

/* ---------- About preview (home) ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.about-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-figure { position: relative; }
.about-figure::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%;
  border: 3px solid var(--gold); border-radius: var(--radius-lg); z-index: -1;
}
.lead { font-size: 18px; color: var(--ink); }

/* ---------- Values / quick cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(176,141,87,.12); color: var(--gold-dark); margin-bottom: 16px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- Experts ("עבודה בשיתוף מומחים") — used on home + about ---------- */
.v2-experts { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.v2-expert { display: flex; gap: 20px; align-items: flex-start; }
.v2-expert-photo {
  flex: 0 0 auto; width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  object-position: top center; box-shadow: 0 0 0 2px var(--gold), 0 10px 26px rgba(22,39,63,.16);
}
.v2-expert-txt { min-width: 0; }
.v2-expert-txt h3 { font-size: 18.5px; margin: 0 0 2px; color: var(--navy); }
.v2-expert-role { display: block; color: var(--gold-dark); font-size: 13.5px; font-weight: 600; letter-spacing: .06em; margin-bottom: 10px; }
.v2-expert-txt p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; font-weight: 300; }
@media (max-width: 640px) {
  .v2-expert { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
}

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
  background: #fff; border-radius: var(--radius-lg); padding: 30px 28px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); position: relative;
}
.testi .quote-mark { color: var(--gold); font-size: 56px; line-height: .6; height: 26px; font-family: Georgia, serif; }
.testi p { font-size: 16px; color: var(--ink); }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.testi .who b { color: var(--navy); display: block; font-size: 15.5px; }
.testi .who span { color: var(--muted); font-size: 13.5px; }
.stars { color: var(--gold); letter-spacing: 2px; margin-top: 4px; }

/* ---------- About full page ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.prose h3 { font-size: 21px; margin-top: 1.2em; }
.prose p { color: var(--ink); font-size: 17px; }
.prose ul { padding-inline-start: 22px; color: var(--ink); }
.prose li { margin-bottom: 8px; }

/* ---------- Specialties accordion ---------- */
.accordion { max-width: 900px; margin: 0 auto; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.acc-head {
  width: 100%; text-align: right; background: #fff; border: none; cursor: pointer;
  padding: 22px 24px; font-size: 19px; font-weight: 600; color: var(--navy); font-family: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: .15s;
}
.acc-head:hover { background: var(--bg-soft); }
.acc-item.open .acc-head { color: var(--gold-dark); }
.acc-head .plus {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(176,141,87,.12);
  color: var(--gold-dark); display: grid; place-items: center; transition: .25s; font-size: 20px;
}
.acc-item.open .plus { transform: rotate(45deg); background: var(--gold); color: #fff; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-body-inner { padding: 0 24px 24px; color: var(--ink); font-size: 16.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list .ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(176,141,87,.12); color: var(--gold-dark); transition: .18s ease;
}
.info-list li:hover .ico { background: var(--gold); color: #fff; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list b { display: block; color: var(--navy); font-size: 16px; }
.info-list a, .info-list span { color: var(--muted); font-size: 15.5px; }
.info-list a:hover { color: var(--gold-dark); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 7px; font-size: 15px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 16px; color: var(--ink); background: #fff; transition: .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); }
.btn--block { width: 100%; justify-content: center; }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 26px; }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

/* Bottom-RIGHT (physical), opposite the accessibility button which sits bottom-left. */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: .18s;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 32px; height: 32px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--navy); color: #fff; padding: 14px 26px; border-radius: 12px;
  box-shadow: var(--shadow-md); z-index: 2000; opacity: 0; pointer-events: none;
  transition: .25s; font-weight: 500; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #b3261e; }
.toast.ok  { background: #17694a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-navy); color: rgba(255,255,255,.78); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 40px; }
.footer-brand b { color: #fff; font-size: 19px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 auto; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.6);
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .cards, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 44px 0; }
  .nav-toggle { display: inline-flex; }
  .brand img { display: block; height: 40px; }  /* keep the office logo */
  .brand-txt { display: none; }                 /* logo already carries the name */
  /* iOS-safe header: never clip, no transparency/blur bugs */
  .site-header { height: auto; min-height: 62px; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header .container { padding-top: 9px; padding-bottom: 9px; align-items: center; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 2px;
    box-shadow: var(--shadow-md); transform: translateY(-100%); transition: transform .25s ease, visibility .25s;
    visibility: hidden;                 /* fully hide when closed — no peeking above */
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav a { padding: 13px 10px; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .nav-cta { margin: 8px 0 0 !important; text-align: center; }
  .about-figure::after { display: none; }
  .hero-flex { flex-direction: column-reverse; text-align: center; gap: 22px; padding-top: 40px; }
  .hero-inner { padding: 8px 0 44px; }
  .hero-actions { justify-content: center; }
  .hero-portrait { margin-top: 8px; }
  .hero-portrait img { width: 160px; height: 160px; }
}
