/* ============================================================
   מעגלים של אחווה — בית הלוחם × אורט סינגאלובסקי
   Palette sampled from the two logos. RTL-first: logical
   properties only, so nothing needs mirroring.
   ============================================================ */

:root {
  --navy-900:#12325C;
  --brand-700:#1F4E79;
  --brand-500:#2E74B5;   /* the blue used by the source document */
  --brand-200:#9DC3E6;
  --brand-50:#EAF2FA;

  --ink:#1B1B1F;
  --muted:#5A6472;
  --line:#E3E8EF;
  --surface:#FFFFFF;
  --page:#F7F9FC;

  --danger:#B42318;

  --radius:14px;
  --radius-sm:10px;
  --shadow-sm:0 1px 2px rgba(18,50,92,.06), 0 1px 3px rgba(18,50,92,.08);
  --shadow-md:0 4px 14px rgba(18,50,92,.08), 0 2px 6px rgba(18,50,92,.05);
  --shadow-lg:0 18px 44px rgba(18,50,92,.12);

  --gutter:20px;
  --max:1080px;
  --max-narrow:720px;
}

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

html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body {
  margin:0;
  font-family:Rubik,"Segoe UI",Arial,system-ui,sans-serif;
  font-size:17px;
  line-height:1.7;
  color:var(--ink);
  background:var(--page);
  -webkit-font-smoothing:antialiased;
}

img { max-width:100%; height:auto; display:block; }

h1,h2,h3 { margin:0; line-height:1.25; font-weight:700; letter-spacing:-.01em; }
p { margin:0; }
ul { margin:0; padding:0; list-style:none; }

a { color:var(--brand-700); }

:focus-visible {
  outline:3px solid var(--brand-500);
  outline-offset:2px;
  border-radius:4px;
}

/* Keeps Latin/numeric runs (phone, email) from reordering under RTL. */
.ltr-field { unicode-bidi:isolate; text-align:start; }

.skip-link {
  position:absolute;
  inset-block-start:-100px;
  inset-inline-start:12px;
  z-index:50;
  padding:10px 18px;
  background:var(--brand-700);
  color:#fff;
  border-radius:0 0 var(--radius-sm) var(--radius-sm);
  text-decoration:none;
}
.skip-link:focus { inset-block-start:0; }

.wrap {
  width:100%;
  max-width:var(--max);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.wrap.narrow { max-width:var(--max-narrow); }

.center { text-align:center; }

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  background:var(--surface);
  border-block-end:1px solid var(--line);
}

.header-inner {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-block:16px;
}

.logos { display:flex; align-items:center; gap:16px; }

/* The logos have very different aspect ratios (1:1 vs 1.9:1), so
   normalize on height, never width. ort-logo.png is ort.jpg with its
   white margin trimmed off — untrimmed, the mark rendered about half
   this size inside its own padding. It still has an opaque white
   background, so both logos only ever sit on a white surface. */
.logo { width:auto; }
.logo-beit { height:44px; }
.logo-ort  { height:46px; }

.logo-divider {
  width:1px;
  height:34px;
  background:var(--line);
}

.header-org {
  font-size:15px;
  font-weight:500;
  color:var(--brand-700);
  text-align:end;
}
/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  background:radial-gradient(120% 120% at 50% 0%, #FFFFFF 0%, var(--brand-50) 55%, #DCE9F7 100%);
  border-block-end:1px solid var(--line);
}

.hero-inner {
  padding-block:76px 84px;
  text-align:center;
}

.eyebrow {
  display:inline-block;
  padding:7px 18px;
  margin-block-end:24px;
  font-size:14px;
  font-weight:500;
  color:var(--brand-700);
  background:rgba(255,255,255,.75);
  border:1px solid var(--brand-200);
  border-radius:999px;
}

.hero-title {
  font-size:clamp(2.4rem,7vw,4rem);
  color:var(--navy-900);
  margin-block-end:20px;
}

.hero-tagline {
  max-width:32ch;
  margin-inline:auto;
  margin-block-end:34px;
  font-size:clamp(1.05rem,2.6vw,1.3rem);
  color:var(--brand-700);
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display:inline-block;
  padding:14px 38px;
  border:1px solid transparent;
  border-radius:999px;
  font:inherit;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-primary {
  background:var(--brand-700);
  color:#fff;
  box-shadow:var(--shadow-md);
}
.btn-primary:hover { background:var(--navy-900); transform:translateY(-1px); }
.btn-primary:active { transform:translateY(0); }
.btn-primary[disabled] {
  background:var(--brand-200);
  color:#fff;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.btn-block { display:block; width:100%; border-radius:var(--radius-sm); }

/* ── Sections ─────────────────────────────────────────────── */

.section { padding-block:64px; background:var(--surface); }
.section-tint { background:var(--page); }

.section-title {
  font-size:clamp(1.45rem,3.6vw,1.9rem);
  color:var(--navy-900);
  margin-block-end:20px;
}

.lead { font-size:1.08rem; color:var(--ink); }
.body-text { color:var(--muted); }

/* ── Callouts ─────────────────────────────────────────────── */

.callout {
  margin-block-start:32px;
  padding:20px 24px;
  border-radius:var(--radius-sm);
  font-weight:600;
  text-align:center;
}

.callout-outline {
  background:var(--brand-50);
  border:1.5px solid var(--brand-500);
  color:var(--brand-700);
}

.banner { background:var(--brand-500); }
.banner-text {
  padding-block:22px;
  color:#fff;
  font-size:clamp(1.02rem,2.4vw,1.2rem);
  font-weight:600;
  text-align:center;
}

/* ── Cards ────────────────────────────────────────────────── */

.cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(224px,1fr));
  gap:20px;
  margin-block-start:32px;
}

.card {
  padding:26px 24px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow:var(--shadow-md);
  transform:translateY(-2px);
  border-color:var(--brand-200);
}

.card-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  margin-block-end:16px;
  border-radius:12px;
  background:var(--brand-50);
  color:var(--brand-700);
}
.card-icon svg { width:24px; height:24px; }

.card-title {
  font-size:1.2rem;
  color:var(--brand-500);
  margin-block-end:8px;
}
.card-text { color:var(--muted); font-size:.98rem; }

/* ── Meeting details ──────────────────────────────────────── */

.details {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
  margin:28px 0 0;
}

.detail {
  padding:20px 24px;
  background:var(--brand-50);
  border:1px solid var(--brand-200);
  border-radius:var(--radius-sm);
  text-align:center;
}
.detail dt {
  font-size:14px;
  font-weight:600;
  color:var(--brand-700);
  margin-block-end:4px;
}
.detail dd { margin:0; font-size:1.05rem; font-weight:500; color:var(--navy-900); }

.details-note {
  margin-block-start:16px;
  font-size:.92rem;
  color:var(--muted);
  text-align:center;
}

/* ── Form ─────────────────────────────────────────────────── */

.form-intro { color:var(--muted); margin-block-end:32px; }

.form-card {
  padding:32px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-lg);
}

.field { margin-block-end:20px; }

.field label {
  display:block;
  margin-block-end:7px;
  font-size:.95rem;
  font-weight:500;
  color:var(--navy-900);
}

.req { color:var(--danger); }

.field input[type=text],
.field input[type=tel],
.field input[type=email],
.field select,
.field textarea {
  width:100%;
  padding:12px 14px;
  font:inherit;
  font-size:1rem;
  color:var(--ink);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  transition:border-color .15s ease, box-shadow .15s ease;
}

.field textarea { resize:vertical; min-height:88px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline:none;
  border-color:var(--brand-500);
  box-shadow:0 0 0 3px rgba(46,116,181,.16);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color:var(--danger); }
.field.invalid input:focus { box-shadow:0 0 0 3px rgba(180,35,24,.14); }

.row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

.error {
  margin-block-start:6px;
  font-size:.87rem;
  color:var(--danger);
}

.consent { margin-block:24px 22px; }
.check {
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-weight:400 !important;
  font-size:.93rem !important;
  color:var(--muted) !important;
  cursor:pointer;
}
.check input {
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin-block-start:3px;
  accent-color:var(--brand-700);
}

.form-status {
  margin-block-start:14px;
  font-size:.93rem;
  font-weight:500;
  text-align:center;
  color:var(--danger);
}
.form-status:empty { margin-block-start:0; }

.form-note {
  margin-block-start:16px;
  font-size:.84rem;
  color:var(--muted);
  text-align:center;
}

/* Honeypot: off-screen rather than display:none, so bots still fill it. */
.hp {
  position:absolute;
  inset-inline-start:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* ── Success panel ────────────────────────────────────────── */

.success { text-align:center; padding-block:16px; }

.success-mark {
  display:flex;
  align-items:center;
  justify-content:center;
  width:64px;
  height:64px;
  margin:0 auto 20px;
  border-radius:50%;
  background:var(--brand-50);
  border:2px solid var(--brand-500);
  color:var(--brand-700);
}
.success-mark svg { width:30px; height:30px; }

.success h3 { font-size:1.4rem; color:var(--navy-900); margin-block-end:10px; }
.success p { color:var(--muted); }

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  background:var(--surface);
  border-block-start:1px solid var(--line);
}

.footer-inner {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding-block:36px;
  text-align:center;
}
.footer-inner .logo-beit { height:36px; }
.footer-inner .logo-ort  { height:38px; }

.footer-text { font-size:.95rem; font-weight:500; color:var(--brand-700); }
.footer-fine { font-size:.82rem; color:var(--muted); }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width:640px) {
  body { font-size:16px; }
  .header-inner { justify-content:center; text-align:center; }
  .header-org { text-align:center; width:100%; }
  .hero-inner { padding-block:56px 62px; }
  .section { padding-block:48px; }
  .form-card { padding:24px 20px; }
  .row { grid-template-columns:1fr; gap:0; }
  .btn { width:100%; }
}

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after {
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

@media print {
  .site-header,.site-footer,.form-card,.skip-link { box-shadow:none; }
  .btn { display:none; }
}
