/* ===========================================================
   מוכנות לממיין — עיצוב בסיס
   פלטה: אדמה-ירוקה קלינית + שנהב חם + זהב מנחה
   =========================================================== */

:root {
  --ivory: #FBF7EF;
  --ivory-deep: #F2ECDD;
  --ink: #1A2420;
  --ink-soft: #3C453F;
  --teal: #12433C;
  --teal-deep: #0B2E29;
  --sage: #6E8F82;
  --sage-pale: #C9D6CC;
  --gold: #C98A3D;
  --gold-deep: #A8712C;
  --gold-hover: #D19C5C;
  --gold-text: #9A6728;
  --sage-text: #556F65;
  --line: #DAD0BC;
  --white: #FFFFFF;

  --serif: 'Frank Ruhl Libre', 'David Libre', serif;
  --sans: 'Assistant', 'Segoe UI', sans-serif;

  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--teal-deep);
  margin: 0 0 .5em;
  line-height: 1.25;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

.lede {
  font-size: 1.2rem;
  color: var(--ink);
  max-width: 62ch;
}

/* ---------- Skip link / accessibility ---------- */
.skip-link {
  position: absolute;
  right: -999px;
  top: 0;
  background: var(--teal);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  right: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Header ---------- */
header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--gold-text); }
@media (max-width: 560px) {
  .brand { font-size: 1rem; white-space: normal; }
}

nav.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--teal);
  border-color: var(--gold);
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--teal-deep);
  padding: 12px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--gold-hover); }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--gold-text);
  font-weight: 700;
  font-size: .95rem;
}
.eyebrow-line::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stat-panel {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 34px 30px;
}
.stat-panel .stat-row + .stat-row {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--teal);
  font-weight: 700;
  display: block;
}
.stat-label { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Images ---------- */
.hero-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.band-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.page-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
.photo-credit {
  font-size: .78rem;
  color: var(--sage-text);
  margin-top: -14px;
  margin-bottom: 24px;
}

/* ---------- Interactive quiz options ---------- */
.quiz-options { list-style: none; padding: 0; margin: 0 0 4px; }
.quiz-options li {
  border: 1px solid var(--line);
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 3px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.quiz-options li:hover:not(.answered) {
  border-color: var(--gold);
  background: var(--ivory-deep);
}
.quiz-options li.answered { cursor: default; }
.quiz-options li.selected-correct {
  border-color: var(--teal);
  background: #E9F3EF;
  color: var(--teal-deep);
  font-weight: 600;
}
.quiz-options li.selected-wrong {
  border-color: #B4483C;
  background: #FBEDEB;
  color: #7A2E25;
  font-weight: 600;
}
.quiz-options li.reveal-correct {
  border-color: var(--teal);
  background: #E9F3EF;
  color: var(--teal-deep);
  font-weight: 600;
}
.quiz-feedback {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 10px;
}
.quiz-feedback .verdict {
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.quiz-feedback .verdict.correct { color: var(--teal); }
.quiz-feedback .verdict.wrong { color: #B4483C; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--ivory-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  max-width: 60ch;
  margin-bottom: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.grid-3 > div {
  padding: 30px 28px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 780px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.topic-index {
  font-family: var(--serif);
  color: var(--sage);
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Sample question card ---------- */
.question-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 32px;
  margin-bottom: 20px;
}
.question-card .q-topic {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 10px;
}
.question-card h3 { margin-bottom: 18px; }
.question-card ol {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.question-card li {
  border: 1px solid var(--line);
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 3px;
  color: var(--ink-soft);
}
.question-card li.correct {
  border-color: var(--teal);
  background: #F1F6F3;
  color: var(--teal-deep);
  font-weight: 600;
}
details.explain {
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
details.explain summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal);
}
details.explain p { margin-top: 10px; }

/* ---------- Article list ---------- */
.article-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.article-row:first-child { border-top: 1px solid var(--line); }
.article-tag {
  font-family: var(--serif);
  color: var(--sage-text);
  font-size: .95rem;
  padding-top: 4px;
}
.article-row h3 { margin-bottom: 8px; }
.article-row a.title-link { text-decoration: none; }
.article-row a.title-link:hover h3 { color: var(--gold-deep); }
.article-meta { font-size: .88rem; color: var(--sage-text); margin-bottom: 10px; }
@media (max-width: 600px) {
  .article-row { grid-template-columns: 1fr; }
}

/* ---------- Article page (long-form content) ---------- */
.article-header {
  padding: 56px 0 30px;
  border-bottom: 1px solid var(--line);
}
.article-body {
  max-width: 70ch;
  margin: 0 auto;
  padding: 48px 28px;
}
.article-body h2 { margin-top: 1.6em; }
.article-body ul, .article-body ol { color: var(--ink-soft); padding-inline-start: 1.4em; }
.article-body li { margin-bottom: .5em; }
.callout {
  border-inline-start: 4px solid var(--gold);
  background: var(--ivory-deep);
  padding: 18px 22px;
  margin: 1.6em 0;
}
.callout p:last-child { margin-bottom: 0; }
.breadcrumbs {
  font-size: .88rem;
  color: var(--sage-text);
  margin-bottom: 18px;
}
.breadcrumbs a { text-decoration: none; color: var(--sage-text); }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--teal-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--gold-text);
  margin-inline-start: 16px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 14px; }

/* ---------- Form ---------- */
form.lead-form {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 36px;
  max-width: 520px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: .95rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  border-radius: 2px;
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: .85rem; color: var(--sage-text); margin-top: 14px; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  background: var(--teal-deep);
  color: var(--sage-pale);
  padding: 48px 0 28px;
  margin-top: 40px;
}
footer.site-footer a { color: var(--sage-pale); text-decoration: none; }
footer.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  font-size: .85rem;
  color: var(--sage-pale);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
