/* Battalion 8211 – Lions of Samaria landing page */

:root {
  --bg-page: #ffffff;
  --bg-deep: #ffffff;
  --bg-panel: #ffffff;
  --bg-elevated: #f4f5f2;
  --olive: #4b5320;
  --olive-light: #5d7a54;
  --khaki-band: #5d6b45;
  --tan-band: #8b7355;
  /* פסי גל — sage · ירוק יער · חום (כמו הפלטה המקורית) */
  --wave-sage: #b8bc9c;
  --wave-forest: #536647;
  --wave-earth: #8c765c;
  --text: #1a1f18;
  --text-muted: #4a5246;
  --accent-cta: #6b5a2a;
  --border-subtle: rgba(0, 0, 0, 0.1);
  --header-h: clamp(132px, 28vw, 228px);
  --radius: 6px;
  --font-he: "Heebo", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-page);
  /* מונע קפיצה כשמופיע/נעלם פס גלילה בהחלפת שפה */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(1rem, 2.8vw, 1.0625rem);
}

body.lang-he {
  font-family: var(--font-he);
}

body.lang-en {
  font-family: var(--font-en);
}

.site-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ——— Header ——— */
.site-header {
  position: relative;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  padding-bottom: 0;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  min-height: var(--header-h);
  /* ריווח פיזי לשמאל ולימין – לא משתנה ב-RTL כדי שהכפתור לא יזוז */
  padding-left: clamp(5.5rem, 20vw, 7.5rem);
  padding-right: clamp(5.5rem, 20vw, 7.5rem);
}

.lang-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: auto;
  z-index: 0;
  /* תמיד EN משמאל, HE מימין – הירוק נשאר על אותו צד של הכפתור */
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  min-width: 7.25rem;
  border: 2px solid var(--olive);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lang-toggle button {
  appearance: none;
  border: none;
  margin: 0;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle button:hover {
  color: var(--text);
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--olive);
  color: #fff;
}

.lang-toggle .divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.12);
  align-self: stretch;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.logo-link img {
  display: block;
  height: clamp(120px, 26vw, 200px);
  width: auto;
  max-width: min(720px, 96vw);
  object-fit: contain;
  filter:
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12))
    drop-shadow(0 10px 28px rgba(75, 83, 32, 0.18));
}

.header-wave {
  display: block;
  width: 100%;
  height: clamp(44px, 10vw, 72px);
  margin-top: 0.25rem;
}

.header-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ——— Main ——— */
main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 2.75rem) clamp(1rem, 4vw, 1.5rem);
}

.content-block {
  display: none;
}

.content-block.is-active {
  display: block;
}

.content-block p {
  margin: 0 0 1.1em;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.05em;
  font-weight: 600;
  color: var(--text);
}

.cta-wrap {
  margin: 2rem 0;
  text-align: center;
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(180deg, var(--olive-light) 0%, var(--olive) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(77, 90, 50, 0.45);
}

.btn-donate:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: 3px;
}

.donation-note {
  margin: 1.25rem auto 0;
  max-width: 680px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

.content-block p.donation-note {
  margin: 1.25rem auto 0;
}

.contact-lead {
  margin-bottom: 0.65rem;
}

.contact-phone-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 0.25rem;
  direction: ltr;
  unicode-bidi: isolate;
}

.wa-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.15rem;
  background: transparent;
  color: var(--wave-forest);
  border: none;
  border-radius: 0;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.wa-link:hover {
  transform: scale(1.06);
  color: var(--wave-earth);
  background: rgba(184, 188, 156, 0.18);
}

.wa-link:focus-visible {
  outline: 2px solid var(--wave-forest);
  outline-offset: 3px;
}

.wa-icon {
  display: block;
  overflow: visible;
}

.phone-link {
  color: var(--olive-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.phone-link:hover {
  text-decoration: underline;
}

.phone-link:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
  border-radius: 2px;
}

.phone-digits {
  white-space: nowrap;
}

.collage-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.collage-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 1rem;
  text-align: center;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.collage-grid figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.collage-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.collage-grid figure:hover img {
  transform: scale(1.04);
}

.gratitude-strip {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem) 1.5rem;
  text-align: center;
}

.gratitude-strip p {
  margin: 0;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 700;
  color: var(--olive);
  letter-spacing: 0.02em;
}

.gratitude-he {
  display: none;
}

.gratitude-en {
  display: none;
}

html[lang="he"] .gratitude-he,
body.lang-he .gratitude-he {
  display: block;
}

html[lang="en"] .gratitude-en,
body.lang-en .gratitude-en {
  display: block;
}

.site-footer {
  position: relative;
  background: var(--bg-page);
  border-top: 1px solid var(--border-subtle);
  padding: 0;
}

.footer-wave {
  display: block;
  width: 100%;
  height: clamp(44px, 10vw, 72px);
  transform: rotate(180deg);
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 2rem;
  text-align: center;
}

.footer-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 480px) {
  .header-inner {
    padding-left: clamp(4rem, 28vw, 5.5rem);
    padding-right: clamp(4rem, 28vw, 5.5rem);
    min-height: clamp(112px, 34vw, 180px);
  }

  .logo-link img {
    height: clamp(96px, 34vw, 160px);
    max-width: min(100%, 96vw);
  }

  .lang-toggle button {
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
  }
}
