/* Elinor Kroitoru — shared styles for Hebrew (RTL) and English (LTR) pages */

:root {
  --ink: #1f2933;
  --ink-soft: #4a5560;
  --navy: #1c2b3d;
  --navy-deep: #142030;
  --paper: #f7f4ee;
  --paper-alt: #efeae0;
  --white: #ffffff;
  --brass: #9a7b4f;
  --brass-light: #c9ae84;
  --line: #ddd5c6;
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Assistant", "Segoe UI", Arial, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.25; margin: 0; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-block-end: 14px;
}

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 720px; margin-block-end: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { color: var(--ink-soft); margin-block: 16px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-light:hover { background: var(--white); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.96);
  backdrop-filter: blur(6px);
  border-block-end: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.brand-sub { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 16px; color: var(--ink); }
.nav a:hover { color: var(--brass); }
.nav .lang-switch { font-weight: 600; color: var(--brass); border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.header-cta { min-height: 42px; padding: 8px 20px; font-size: 16px; }

.menu-toggle {
  display: none;
  margin-inline-start: auto;
  background: none;
  border: 1px solid var(--line);
  width: 44px; height: 44px;
  border-radius: 2px;
  cursor: pointer;
  color: var(--navy);
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin: auto; position: relative; content: "";
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); }
.hero .role { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px); color: var(--brass); margin-block: 14px 26px; }
.hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 600px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.portrait { position: relative; max-width: 380px; justify-self: center; width: 100%; }
.portrait::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--brass-light);
}
[dir="rtl"] .portrait::before { inset: 18px 18px -18px -18px; }
.portrait img { position: relative; width: 100%; height: auto; aspect-ratio: 380 / 560; object-fit: cover; object-position: top; }

/* Heir research */
.heirs { background: var(--navy); color: #e8e4dc; }
.heirs h2, .heirs h3 { color: var(--white); }
.heirs .eyebrow { color: var(--brass-light); }
.heirs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.heirs-intro h2 { font-size: clamp(30px, 4vw, 42px); margin-block-end: 24px; }
.credential {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--white);
  border-inline-start: 3px solid var(--brass-light);
  padding-inline-start: 22px;
  margin: 0 0 28px;
}
.heirs-intro p { margin: 0 0 32px; }
.heirs-panel { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14); padding: clamp(24px, 4vw, 40px); }
.heirs-panel h3 { font-size: 22px; margin-block-end: 14px; }
.heirs-panel h3:not(:first-child) { margin-block-start: 30px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-inline-start: 26px; margin-block-end: 10px; }
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 10px; height: 1px;
  background: var(--brass-light);
}

/* Expertise */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-block-start: 3px solid var(--brass); padding: 32px 28px; }
.card .num { font-family: var(--serif); color: var(--brass); font-size: 15px; letter-spacing: 0.1em; }
.card h3 { font-size: 23px; margin-block: 8px 14px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* Experience */
.experience { background: var(--paper-alt); }
.timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--brass-light); max-width: 860px; }
.timeline li { position: relative; padding-inline-start: 32px; padding-block-end: 30px; }
.timeline li:last-child { padding-block-end: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -6px;
  top: 0.55em;
  width: 11px; height: 11px;
  background: var(--paper-alt);
  border: 2px solid var(--brass);
  border-radius: 50%;
}
.timeline .years { font-weight: 600; color: var(--brass); font-size: 16px; }
.timeline h3 { font-size: 21px; margin-block: 2px 4px; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: 17px; }

.institutions { margin-block-start: 56px; padding-block-start: 32px; border-block-start: 1px solid var(--line); }
.institutions .eyebrow { margin-block-end: 18px; }
.institutions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.institutions li { font-family: var(--serif); font-size: 20px; color: var(--navy); }

/* Contact */
.contact { background: var(--navy-deep); color: #e8e4dc; text-align: center; }
.contact h2 { color: var(--white); font-size: clamp(30px, 4vw, 42px); }
.contact .eyebrow { color: var(--brass-light); }
.contact .section-head { margin-inline: auto; }
.contact .section-head p { color: #c9c4ba; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 920px; margin-inline: auto; }
.contact-item {
  display: block;
  padding: 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.contact-item:hover { border-color: var(--brass-light); background: rgba(255, 255, 255, 0.04); }
.contact-item svg { width: 28px; height: 28px; color: var(--brass-light); margin: 0 auto 14px; display: block; }
.contact-item .label { display: block; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-light); margin-block-end: 6px; }
.contact-item .value { display: block; font-size: 19px; color: var(--white); direction: ltr; unicode-bidi: isolate; word-break: break-word; }

/* Footer */
.site-footer { background: var(--navy-deep); border-block-start: 1px solid rgba(255, 255, 255, 0.1); color: #9aa3ad; font-size: 15px; padding-block: 24px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: #c9c4ba; text-decoration: none; }

/* Mobile quick-contact bar */
.mobile-bar { display: none; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 20px; }
  .header-cta { display: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  body { font-size: 17px; padding-block-end: 64px; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-block-end: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 14px; border-block-end: 1px solid var(--line); }
  .nav .lang-switch { border-inline-start: 0; padding-inline-start: 0; border-block-end: 0; }

  .hero-grid, .heirs-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 32px 56px; }
  .portrait { order: -1; max-width: 210px; }
  .portrait img { aspect-ratio: 4 / 5; }
  .portrait::before { inset: 12px -12px -12px 12px; }
  [dir="rtl"] .portrait::before { inset: 12px 12px -12px -12px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-grid { grid-template-columns: 1fr; }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    background: var(--navy);
    border-block-start: 1px solid rgba(255, 255, 255, 0.15);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 56px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 16px;
  }
  .mobile-bar a + a { border-inline-start: 1px solid rgba(255, 255, 255, 0.15); }
  .mobile-bar svg { width: 20px; height: 20px; color: var(--brass-light); }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}
