/* ============================================================
   דברי תורה — גיליון סגנון ראשי
   אתר סטטי בעברית, RTL. כל העמודים משתמשים בקובץ זה.
   צבעים: נייבי על קרם עם נגיעות זהב.
   ============================================================ */

:root {
  --navy: #1c2a4a;
  --navy-dark: #14203a;
  --cream: #faf5e8;
  --cream-dark: #f3ecda;
  --gold: #c19a3f;
  --gold-dark: #a3802c;
  --text: #2a3350;
  --white: #fffdf7;
  --max-width: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { direction: rtl; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Frank Ruhl Libre", "David Libre", serif;
  font-size: 18px;
  line-height: 1.8;
  text-align: right;
}

h1, h2, h3, h4 {
  font-family: "Suez One", "Frank Ruhl Libre", serif;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 0.5em;
}

a { color: var(--navy); }
a:hover { color: var(--gold-dark); }

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

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- כפתורים ---------- */

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: "Suez One", serif;
  font-size: 1.05rem;
  padding: 0.7em 1.8em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--gold-dark); color: var(--white); }

/* ---------- כותרת עליונה: שם האתר מימין, תפריט משמאל ---------- */

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  font-family: "Suez One", serif;
  font-size: 1.8rem;
  color: var(--navy);
  text-decoration: none;
}
.brand span { color: var(--gold-dark); }

.main-nav {
  margin-inline-start: auto;   /* דוחף את התפריט לקצה השמאלי */
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 1.05rem;
  padding: 6px 12px;
  border-radius: 6px;
}
.main-nav a:hover { background: var(--cream-dark); }
.main-nav a.active { color: var(--gold-dark); font-weight: 700; }

.main-nav a.nav-cta {
  background: var(--navy);
  color: var(--cream);
  margin-inline-start: 6px;
}
.main-nav a.nav-cta:hover { background: var(--navy-dark); }

/* ---------- גיבור (Hero) ---------- */

.hero {
  background:
    linear-gradient(rgba(20, 32, 58, 0.72), rgba(20, 32, 58, 0.78)),
    url("../images/hero-synagogue.jpg") center 40% / cover no-repeat;
  color: var(--cream);
  padding: 110px 0 100px;
}

.hero h1 {
  color: var(--cream);
  font-size: 3.2rem;
  margin-bottom: 0.2em;
}

.hero .tagline {
  font-size: 1.35rem;
  color: var(--cream-dark);
  max-width: 720px;
  margin: 0 0 1.4em;
}

.hero .gold-line {
  width: 90px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1.2em;
}

/* ---------- מקטעים ---------- */

.section { padding: 60px 0; }

.section-title {
  font-size: 2rem;
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
}

.section-sub {
  text-align: center;
  color: #5a6280;
  margin-top: 0.8em;
}

/* ---------- כרטיסי מאמרים ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border: 1px solid #e6ddc6;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 10px 26px rgba(28, 42, 74, 0.14);
  transform: translateY(-3px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 { font-size: 1.35rem; margin-bottom: 0.3em; }

.card-date {
  color: var(--gold-dark);
  font-size: 0.92rem;
  margin: 0 0 0.6em;
}

.card-body p { margin: 0 0 1em; }

.card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--gold-dark);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ---------- רצועת הרשמה ---------- */

.subscribe-strip {
  background: var(--navy);
  color: var(--cream);
  padding: 56px 0;
}

.subscribe-strip h2 { color: var(--cream); }
.subscribe-strip p { margin-top: 0; }

.subscribe-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 0.7em 1em;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text);
}
.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
}

/* ---------- עמוד מאמר ---------- */

.article { padding: 50px 0 70px; max-width: 800px; }

.article-header h1 { font-size: 2.4rem; }

.article-meta {
  color: var(--gold-dark);
  margin: 0 0 1.4em;
}

.article-image {
  border-radius: var(--radius);
  margin-bottom: 2em;
  max-height: 420px;
  width: 100%;
  object-fit: cover;
}

.article-body p { margin: 0 0 1.2em; }

.article-body blockquote {
  font-family: "Suez One", serif;
  font-size: 1.35rem;
  color: var(--navy);
  border-inline-start: 4px solid var(--gold);
  margin: 1.6em 0;
  padding: 0.4em 1.2em;
  background: var(--cream-dark);
  border-radius: 6px;
}

.article-body blockquote cite {
  display: block;
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1rem;
  font-style: normal;
  color: #5a6280;
  margin-top: 0.4em;
}

.back-link {
  display: inline-block;
  margin-top: 2em;
  font-weight: 700;
  text-decoration: none;
  color: var(--gold-dark);
}
.back-link:hover { text-decoration: underline; }

/* ---------- טפסים ---------- */

.form-card {
  background: var(--white);
  border: 1px solid #e6ddc6;
  border-radius: var(--radius);
  padding: 34px;
  max-width: 620px;
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7em 1em;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #cfc4a5;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(193, 154, 63, 0.18);
}

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

/* ---------- עמוד פנימי פשוט ---------- */

.page { padding: 56px 0 70px; }
.page h1 { font-size: 2.3rem; }
.page .lead { font-size: 1.15rem; max-width: 640px; }

/* ---------- כותרת תחתונה ---------- */

.site-footer {
  background: var(--navy-dark);
  color: var(--cream-dark);
  padding: 44px 0 30px;
  margin-top: 0;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: baseline;
  justify-content: space-between;
}

.footer-brand {
  font-family: "Suez One", serif;
  font-size: 1.4rem;
  color: var(--cream);
}

.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--cream-dark); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(250, 245, 232, 0.15);
  margin-top: 26px;
  padding-top: 18px;
  font-size: 0.85rem;
  color: #b9b08e;
}

.footer-bottom a { color: #b9b08e; }

/* ---------- מובייל ---------- */

@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand { font-size: 1.5rem; }
  .header-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .main-nav { margin-inline-start: 0; }
  .hero { padding: 70px 0; }
  .hero h1 { font-size: 2.4rem; }
  .article-header h1, .page h1 { font-size: 1.9rem; }
  .form-card { padding: 24px 20px; }
}
