/* Kadima Foundation — refreshed site. Brand colors kept from the current site. */
:root {
  --blue: #35579c;        /* primary brand blue (current site) */
  --blue-dark: #253f75;
  --blue-soft: #7191c1;   /* light brand blue (current site) */
  --blue-tint: #eaf0f9;
  --navy: #203262;        /* Kadima app / flyer navy (logo background) */
  --ink: #42474c;         /* body gray (current site) */
  --ink-strong: #1f2a3d;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f5f6f9;
  --line: #e2e6ee;
  --gold: #c9a24a;        /* small warm accent */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 42, 61, .08);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Figtree", "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { color: var(--ink-strong); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; scroll-margin-top: 76px; }
.alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: 12px; display: inline-block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--blue); cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); }
.btn-white { background: #fff; color: var(--blue); border-color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 10px; }
.brand-name { color: var(--blue); font-weight: 800; font-size: 1.2rem; line-height: 1.05; }
.brand-tag { display: block; color: var(--blue-soft); font-size: .72rem; font-weight: 600; letter-spacing: .08em; }
.nav-menu { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .96rem; padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover { color: var(--blue); background: var(--blue-tint); }
.nav-links a.active { color: var(--blue); background: var(--blue-tint); }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { padding: 10px 20px; font-size: .95rem; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; }
.lang-switch:hover { color: var(--blue); background: var(--blue-tint); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink-strong); }

/* Hero */
.hero { padding: 96px 0 80px; background:
  radial-gradient(900px 400px at 85% 10%, rgba(113,145,193,.22), transparent 60%),
  linear-gradient(180deg, #f7f9fd, #fff); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--blue); }
.hero .lead { margin-bottom: 30px; }
.hero-card { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 32px; border: 1px solid var(--line); position: relative; }
.hero-card::before { content: ""; position: absolute; inset: -18px -18px auto auto; width: 120px; height: 120px; border-radius: 30px; background: var(--blue); opacity: .08; z-index: -1; }
.hero-card h3 { margin-bottom: 18px; }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.term { background: var(--bg-alt); border-radius: 12px; padding: 16px; }
.term b { display: block; font-size: 1.6rem; color: var(--blue); line-height: 1.1; }
.term small { color: var(--muted); font-size: .85rem; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 56px; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.85); }
.page-hero .eyebrow { color: #c8d6ee; }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
.card p:last-child { margin-bottom: 0; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step::before { counter-increment: step; content: "0" counter(step); font-weight: 800; font-size: 2rem; color: var(--blue-soft); display: block; margin-bottom: 10px; }
.step .time { display: inline-block; margin-top: 8px; font-size: .82rem; font-weight: 700; color: var(--blue); background: var(--blue-tint); padding: 4px 10px; border-radius: 999px; }

/* Cycle diagram */
.cycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; position: relative; }
.cycle-item { text-align: center; padding: 0 12px; position: relative; }
.cycle-item .dot { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; background: #fff; border: 2px solid var(--blue); display: grid; place-items: center; color: var(--blue); position: relative; z-index: 1; }
.cycle-item .dot svg { width: 32px; height: 32px; }
.cycle-item:not(:last-child)::after { content: ""; position: absolute; top: 38px; left: calc(50% + 46px); right: calc(-50% + 46px); border-top: 2px dashed var(--blue-soft); }
.cycle-back { text-align: center; margin-top: 26px; color: var(--blue); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Band / CTA */
.band { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.85); margin: 0; }
.band .btn-row { justify-content: flex-end; }

/* Impact categories */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat { background: #fff; border-radius: var(--radius); padding: 24px 18px; text-align: center; border: 1px solid var(--line); }
.cat .icon { margin: 0 auto 12px; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.cat .icon svg { width: 26px; height: 26px; }
.cat b { color: var(--ink-strong); display: block; line-height: 1.3; }

/* Checklist */
.check { list-style: none; padding: 0; margin: 0; }
.check li { padding-left: 34px; position: relative; margin-bottom: 14px; }
.check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335579c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--ink-strong); padding: 18px 40px 18px 0; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--blue); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 14px; color: var(--muted); }

/* Donate widget */
.donate-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.donate-box { background: #fff; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 32px; position: sticky; top: 100px; }
.toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-alt); border-radius: 999px; padding: 5px; margin-bottom: 22px; }
.toggle button { border: 0; background: transparent; padding: 11px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; font-family: inherit; font-size: .95rem; }
.toggle button.on { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.amounts button { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 6px; font-weight: 800; font-size: 1.1rem; color: var(--ink-strong); cursor: pointer; font-family: inherit; }
.amounts button.on { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }
.other { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; padding: 0 14px; margin-bottom: 18px; }
.other:focus-within { border-color: var(--blue); }
.other span { font-weight: 800; color: var(--muted); }
.other input { border: 0; outline: 0; padding: 14px 8px; font-size: 1.05rem; width: 100%; font-family: inherit; color: var(--ink-strong); background: transparent; }
.impact-line { background: var(--bg-alt); border-radius: 12px; padding: 14px 16px; font-size: .95rem; margin-bottom: 20px; min-height: 52px; }
.impact-line b { color: var(--blue); }
.donate-box .btn { width: 100%; justify-content: center; }
.fine { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }

.ways { display: grid; gap: 16px; margin-top: 28px; }
.way { display: flex; gap: 16px; align-items: flex-start; }
.way .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; }
.way .icon svg { width: 22px; height: 22px; }
.way h4 { margin: 2px 0 4px; }
.way p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Eligibility / apply */
.apply-panel { background: #fff; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 36px; }
.apply-panel .btn { width: 100%; justify-content: center; margin-top: 8px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pill { background: var(--blue-tint); color: var(--blue); font-weight: 700; padding: 8px 14px; border-radius: 999px; font-size: .9rem; }

/* Quote / refer */
.refer { background: #fff; border: 1px dashed var(--blue-soft); border-radius: var(--radius); padding: 26px; font-size: .98rem; }
.refer p:last-child { margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #c7cedb; padding: 64px 0 96px; /* room for the WhatsApp button */ margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-grid h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: var(--blue-soft); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform .15s ease; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 14px; right: 16px; bottom: 16px; } }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .grid-2, .donate-grid, .band { grid-template-columns: 1fr; }
  .band .btn-row { justify-content: flex-start; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cycle { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .cycle-item::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .donate-box { position: static; }
}
@media (max-width: 1120px) {
  .menu-toggle { display: block; }
  .nav-menu { display: none; }
  .site-header.open .nav-menu { display: block; position: absolute; top: 76px; left: 0; right: 0; background: #fff; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(0,0,0,.06); }
  .site-header.open .nav-links { flex-direction: column; align-items: stretch; margin-bottom: 12px; }
  .site-header.open .nav-cta .btn { flex: 1; justify-content: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .grid-3, .grid-4, .steps, .cats, .foot-grid, .cycle { grid-template-columns: 1fr; }
  .band { padding: 36px 24px; }
  .hero-card, .donate-box, .apply-panel { padding: 24px; }
}

/* Keep header labels on one line */
.brand-name, .brand-tag, .nav-links a, .nav-cta .btn, .lang-switch { white-space: nowrap; }
@media (max-width: 1120px) {
  .site-header.open .nav-cta { flex-wrap: wrap; }
  .site-header.open .lang-switch { width: 100%; justify-content: center; }
}
