/* Zayis Raanon: built from the Zayis Raanon design system (tokens.json v2).
   One olive palette for letterhead and website. Logos sit on paper only.
   Sized for older readers: body text never below 20px. */

:root {
  --paper: #ffffff;
  --text: #000000;
  --ink: #201d1d;
  --olive-green: #0c5c36;
  --leaf-green: #65997f;   /* decoration only */
  --ripe-olive: #4b2e45;
  --olive-oil: #c79a2b;    /* decoration only */
  --stone: #f6f2e8;
  --sage: #e8efe9;
  --font-sans: Calibri, Carlito, "Segoe UI", Arial, sans-serif;

  --base: 20px;            /* changed by the text-size buttons */
  --gutter: 16px;
  --measure: 1120px;
  --section: 64px;
  --radius: 6px;
  --header-rule: 2px;
  --footer-rule: 1px;
}
html[data-size="large"]  { --base: 23px; }
html[data-size="larger"] { --base: 26px; }
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--base); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-sans); font-size: 1rem; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--olive-green); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--olive-green); outline-offset: 3px; }
[lang="he"] { font-weight: 700; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--olive-green); color: var(--paper); padding: 12px 18px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header: as the letterhead (logo left, contact right, olive rule) */
.site-header { background: var(--paper); position: relative; z-index: 20; }
.header-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 16px; }
.logo img { display: block; width: 212px; height: auto; }
.header-contact { text-align: right; line-height: 1.3; }
.header-contact .label { display: block; color: var(--olive-green); font-weight: 700; font-size: .8rem; }
.header-contact .phone { font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.header-contact .phone:hover { text-decoration: underline; }
@media (max-width: 560px) { .header-contact { text-align: left; } }
.header-rule { height: var(--header-rule); background: var(--olive-green); }

nav.main { border-bottom: var(--footer-rule) solid var(--leaf-green); }
.nav-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
nav.main ul.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; }
nav.main ul.menu > li > a,
nav.main summary { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 0; color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; }
nav.main ul.menu > li > a:hover, nav.main summary:hover { color: var(--olive-green); text-decoration: underline; }

/* Projects drop-down (native <details>, so it works by keyboard and without JS) */
.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary .chev { width: 14px; height: 14px; transition: transform .15s; }
.dropdown[open] summary { color: var(--olive-green); }
.dropdown[open] summary .chev { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; left: -16px; top: 100%; min-width: 340px; margin: 0; padding: 8px; list-style: none;
  background: var(--paper); border: var(--header-rule) solid var(--olive-green); border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(32, 29, 29, .14);
}
.dropdown-panel a { display: block; padding: 12px 14px; border-radius: 4px; text-decoration: none; color: var(--ink); }
.dropdown-panel a:hover, .dropdown-panel a:focus-visible { background: var(--sage); }
.dropdown-panel strong { display: block; color: var(--olive-green); font-size: 1.05rem; }
.dropdown-panel span { display: block; font-size: .85rem; line-height: 1.35; }
.dropdown-panel li + li { border-top: var(--footer-rule) solid var(--sage); }
.dropdown-panel .sub { padding-left: 34px; position: relative; }
.dropdown-panel .sub::before { content: ""; position: absolute; left: 16px; top: 12px; bottom: 22px; border-left: 2px solid var(--leaf-green); border-bottom: 2px solid var(--leaf-green); width: 10px; border-bottom-left-radius: 6px; }
@media (max-width: 700px) {
  .dropdown-panel { position: static; min-width: 0; margin-bottom: 8px; box-shadow: none; }
}

/* Text size: a quiet floating pill in the bottom corner, in stone with a leaf rule.
   Sized in px so the control itself doesn't jump as the text grows. */
.text-size {
  position: fixed; right: 16px; bottom: 16px; z-index: 15;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 4px 4px 14px; font-size: 15px;
  background: var(--stone); color: var(--ripe-olive);
  border: 1px solid var(--leaf-green); border-radius: 999px;
  box-shadow: 0 4px 14px rgba(32, 29, 29, .12);
}
.text-size .ts-label { font-weight: 700; margin-right: 4px; }
.text-size button {
  font-family: inherit; font-weight: 700; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--olive-green); cursor: pointer;
}
.text-size button:hover { background: var(--sage); }
.text-size button[aria-pressed="true"] { background: var(--olive-green); color: var(--paper); }
.text-size .a1 { font-size: 15px; } .text-size .a2 { font-size: 19px; } .text-size .a3 { font-size: 23px; }
@media (max-width: 480px) { .text-size .ts-label { display: none; } .text-size { padding-left: 4px; } }
.site-footer { padding-bottom: 96px !important; } /* room so the pill never covers the footer */

/* ---------- Type */
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); color: var(--ink); }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.7rem); color: var(--olive-green); }
h3 { font-size: 1.2rem; color: var(--olive-green); }
h2.bar::before { content: ""; display: block; width: 40px; height: 4px; background: var(--olive-oil); margin-bottom: 14px; border-radius: 2px; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: 1.2rem; }
.eyebrow { color: var(--ripe-olive); font-weight: 700; font-size: .85rem; letter-spacing: .02em; margin-bottom: .5em; }

/* ---------- Sections */
section { padding: var(--section) 0; }
.stone { background: var(--stone); }
.sage { background: var(--sage); }
.paper { background: var(--paper); }

/* Olive sprig divider between sections */
.sprig-divider { display: flex; justify-content: center; padding: 0; margin: -14px 0; position: relative; z-index: 2; }
.sprig-divider svg { width: 120px; height: 28px; }
.leaf-a { fill: var(--olive-green); } .leaf-b { fill: var(--leaf-green); }
.fruit-ink { fill: var(--ink); } .fruit-oil { fill: var(--olive-oil); }
.stem { stroke: var(--olive-green); stroke-width: 2; fill: none; stroke-linecap: round; }

/* ---------- Buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 24px; background: var(--olive-green); color: var(--paper); font-weight: 700; text-decoration: none; border-radius: var(--radius); border: 2px solid var(--olive-green); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.secondary { background: var(--paper); color: var(--olive-green); }
.btn.secondary:hover { background: var(--sage); color: var(--ink); border-color: var(--olive-green); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Hero */
.hero { padding: 48px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.45fr 1fr; } }
.hero-branch { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto 8px; }
.call-card { background: var(--paper); border: var(--header-rule) solid var(--olive-green); border-radius: var(--radius); padding: 24px; }
.call-card .big { display: block; font-size: 2rem; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.1; margin: 4px 0 8px; }
.call-card .big:hover { text-decoration: underline; }
.call-card p:last-child { margin-bottom: 0; }

/* ---------- The name */
.verse { margin: 28px 0; padding: 24px 28px; background: var(--paper); border-radius: var(--radius); border: var(--footer-rule) solid var(--leaf-green); max-width: 760px; }
.verse .he { font-size: 1.7rem; color: var(--ink); line-height: 1.3; margin: 0 0 6px; text-align: right; direction: rtl; max-width: none; }
.verse .en { font-size: 1.15rem; margin: 0; max-width: none; }
.verse cite { display: block; margin-top: 6px; color: var(--ripe-olive); font-style: normal; font-weight: 700; font-size: .85rem; }
.meaning { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 760px) { .meaning { grid-template-columns: 1fr 1fr; } }

/* ---------- Our story timeline */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; background: var(--leaf-green); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 32px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 25px; height: 25px; border-radius: 50%; background: var(--olive-oil); border: 4px solid var(--stone); box-shadow: 0 0 0 2px var(--olive-green); }
.timeline .when { display: block; color: var(--ripe-olive); font-weight: 700; font-size: .9rem; }
.timeline h3 { margin: 2px 0 6px; }
.timeline p { margin-bottom: 0; }

/* ---------- Projects tree */
.tree { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 860px) { .tree { grid-template-columns: 1fr 1fr; } }
.project { background: var(--paper); border-radius: var(--radius); border: var(--header-rule) solid var(--olive-green); padding: 24px; display: flex; flex-direction: column; }
.project.shoot { border-color: var(--leaf-green); }
.project .tag { display: inline-block; align-self: flex-start; font-size: .8rem; font-weight: 700; color: var(--ripe-olive); background: var(--stone); border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.project p:last-of-type { margin-bottom: 16px; }
.project .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Grids */
.grid { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 700px) { .grid.two, .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.card { border-top: var(--header-rule) solid var(--olive-green); padding-top: 16px; }
.card p:last-child { margin-bottom: 0; }
ul.ticks { padding-left: 1.2em; margin: 0 0 1em; }
ul.ticks li { margin-bottom: .4em; }
ul.ticks li::marker { color: var(--olive-green); }

/* ---------- Register facts */
dl.facts { margin: 24px 0; max-width: 820px; }
dl.facts div { display: grid; grid-template-columns: 1fr; padding: 12px 0; border-bottom: var(--footer-rule) solid var(--leaf-green); }
@media (min-width: 640px) { dl.facts div { grid-template-columns: 240px 1fr; gap: 16px; } }
dl.facts dt { font-weight: 700; color: var(--olive-green); }
dl.facts dd { margin: 0; }
.source { font-size: .8rem; }

/* ---------- Funders (always on paper: both logos have white grounds) */
.funders { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; margin-top: 24px; }
.funders .gc { width: 220px; }
.funders .tnl { width: 300px; }

/* ---------- Contact */
address { font-style: normal; }
.contact-grid { display: grid; gap: 28px; margin-top: 24px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer: as the letter footer */
.site-footer { background: var(--paper); padding: 0 0 40px; font-size: .85rem; }
.footer-rule { height: var(--footer-rule); background: var(--leaf-green); margin-bottom: 8px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-funders { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-funders .gc { width: 130px; }
.footer-funders .tnl { width: 240px; }
.footer-text { text-align: right; }
.footer-text p { max-width: none; margin: 0; }
.motto { color: var(--ripe-olive); }
.footer-name { color: var(--olive-green); font-weight: 700; }
.footer-links { margin-top: 12px; }
@media (max-width: 640px) { .footer-text { text-align: left; } }

@media print { nav.main, .text-size, .skip, .sprig-divider { display: none; } section { padding: 16px 0; } }
