/* ===== תמר לאור — עיצוב האתר ===== */
:root {
  --paper: #fbf3e2;
  --paper-2: #f4e6c8;
  --ink: #1f2a20;
  --ink-soft: #55594a;
  --accent: #1f3a26;      /* ירוק כהה של כרם, מהזמנת ההשקה */
  --accent-2: #e89a1f;    /* כתום-שמש */
  --vine: #7e9a32;        /* ירוק גפן */
  --cover: #bfb4a8;       /* צבע הכריכה */
  --line: #e6d6b4;
  --radius: 14px;
  --max: 1120px;
  --font-head: "Miriam Libre", "David", serif;   /* שירים, ציטוטים ופתיח */
  --font-body: "Varela Round", "Arial", sans-serif;   /* כותרות וטקסט */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
.container { width: min(var(--max), 92%); margin-inline: auto; }

/* ----- כפתורים ----- */
.btn {
  display: inline-block;
  padding: .7em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #152a1b; }
.btn-ghost { color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* ----- כותרת עליונה ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 234, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
}
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav a.active { border-bottom: 2px solid var(--accent-2); }
.nav .btn { color: #fff; border-bottom: 2px solid var(--accent); }
.menu-toggle {
  display: none; background: none; border: 0; font-size: 1.8rem;
  cursor: pointer; color: var(--ink);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex; align-items: center;
  background: url("../assets/hero-bg.svg") center / cover no-repeat, var(--cover);
  overflow: hidden;
}
.hero-content { position: relative; max-width: 620px; padding: 4rem 0; }
.hero .eyebrow {
  color: var(--accent-2); font-weight: 600; letter-spacing: .05em;
  margin-bottom: .5rem;
}
.hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); margin-bottom: .2em; }
.hero p.lead { font-size: 1.3rem; color: var(--ink-soft); margin: 0 0 2rem; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ----- רצועת פתיח ----- */
.intro-band {
  background: var(--accent);
  color: #f3efe7;
  padding: 4.5rem 0;
}
.intro-band p { font-size: 1.45rem; line-height: 1.8; max-width: 860px; margin: 0 0 1.5rem; font-family: var(--font-head); }
.intro-band a { color: #fff; font-weight: 600; }

/* ----- קטעים ----- */
section { padding: 5rem 0; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head .section-title { margin: 0; }

/* ----- הספר ----- */
.book {
  display: grid; grid-template-columns: 340px 1fr; gap: 4rem; align-items: center;
}
.book-cover {
  border-radius: 6px;
  box-shadow: -18px 22px 40px rgba(0,0,0,.18), -2px 2px 0 rgba(0,0,0,.05);
  transform: rotate(2deg);
}
.book .tag {
  display: inline-block; background: var(--paper-2); color: var(--accent-2);
  padding: .25em .9em; border-radius: 999px; font-weight: 600; font-size: .9rem;
  margin-bottom: 1rem;
}
.book h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.book .blurb { color: var(--ink-soft); font-size: 1.15rem; }
.book blockquote {
  margin: 1.5rem 0; padding-inline-start: 1.2rem;
  border-inline-start: 3px solid var(--accent-2);
  font-family: var(--font-head); font-size: 1.25rem; font-style: italic;
}
.book .price { font-size: 1.1rem; margin: 1.5rem 0; color: var(--ink-soft); }

/* ----- תחומי פעילות ----- */
.alt { background: var(--paper-2); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  background: var(--paper); border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--line);
}
.service .icon { font-size: 2rem; margin-bottom: .5rem; }
.service h3 { font-size: 1.5rem; }
.service p { color: var(--ink-soft); margin: 0; }

/* ----- כרטיסי בלוג ----- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.post-card .thumb { aspect-ratio: 16/10; background: var(--paper-2); object-fit: cover; width: 100%; }
.post-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.post-card p { color: var(--ink-soft); margin: 0 0 1rem; flex: 1; font-size: 1rem; }
.meta { font-size: .88rem; color: var(--ink-soft); display: flex; gap: .8rem; }

/* ----- כתבות (PDF) ----- */
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.article {
  display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.article h3 { font-size: 1.25rem; margin: 0 0 .2rem; }
.article .source { color: var(--ink-soft); font-size: .95rem; }
.article .links { display: flex; gap: .6rem; }
.article .links a { font-size: .95rem; padding: .45em 1.1em; }

/* ----- עמוד פנימי ----- */
.page-hero {
  background: var(--paper-2);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: .2em; }
.page-hero p { color: var(--ink-soft); font-size: 1.2rem; margin: 0; max-width: 680px; }

/* ----- פוסט ----- */
.post { max-width: 720px; margin-inline: auto; padding: 4rem 0; }
.post h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.post .meta { margin-bottom: 2rem; }
.post .cover { border-radius: var(--radius); margin-bottom: 2.5rem; }
.post-content p { font-size: 1.15rem; line-height: 1.95; }
.post-content h2 { font-size: 1.8rem; margin-top: 2em; }
.post-content blockquote {
  margin: 2rem 0; padding: 1rem 1.5rem; background: var(--paper-2);
  border-inline-start: 4px solid var(--accent-2); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head); font-size: 1.3rem;
}
.back { display: inline-block; margin-top: 3rem; font-weight: 600; text-decoration: none; }

/* ----- אודות ----- */
.about { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: center; }
.about img, .about .photo-placeholder { border-radius: 50% 50% var(--radius) var(--radius); }
.photo-placeholder {
  aspect-ratio: 4/5; background: var(--paper-2); border: 2px dashed var(--line);
  display: grid; place-items: center; color: var(--ink-soft); text-align: center; padding: 1rem;
}

/* ----- יצירת קשר ----- */
.contact { text-align: center; }
.contact p { color: var(--ink-soft); font-size: 1.2rem; max-width: 640px; margin: 0 auto 2rem; }
.contact .actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ----- כותרת תחתונה ----- */
.site-footer {
  background: var(--ink); color: #cfc8bd; padding: 3rem 0 2rem; font-size: .95rem;
}
.site-footer .container { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #f3efe7; text-decoration: none; }
.site-footer .logo { color: #f3efe7; }
.social { display: flex; gap: 1.2rem; }
.copyright { width: 100%; border-top: 1px solid #45423e; padding-top: 1.5rem; margin-top: 1rem; text-align: center; }

/* ----- רספונסיביות ----- */
@media (max-width: 900px) {
  .book, .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .book-cover { max-width: 260px; margin-inline: auto; }
  .about .photo-placeholder, .about img { max-width: 320px; margin-inline: auto; }
  .cards-3, .posts { grid-template-columns: 1fr 1fr; }
  .articles { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; inset-inline: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 1rem; width: 100%; text-align: center; }
  .nav a.active { border-bottom: 0; }
  .nav .btn { width: auto; margin: 1rem; }
  .cards-3, .posts { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .article .links { grid-column: 1 / -1; }
  section { padding: 3.5rem 0; }
}

/* ----- Hero עם תמונה ----- */
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-photo {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; aspect-ratio: 3/4; max-height: 70vh;
  box-shadow: 0 30px 60px rgba(70, 55, 45, .18);
  justify-self: center;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.book-photo { border-radius: var(--radius); box-shadow: -18px 22px 40px rgba(70,55,45,.18); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.about img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.filter { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter input {
  flex: 1; min-width: 220px; padding: .75em 1.2em; border-radius: 999px;
  border: 1px solid var(--line); font: inherit; background: #fff;
}
.count { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo { max-width: 340px; order: -1; margin-top: 2rem; }
  .hero-content { padding: 1rem 0 4rem; }
}

/* ----- בהשראת עיצוב הספר ----- */
h1, h2, h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: -.01em; }
.hero h1, .hero .lead, .hero .eyebrow { color: #fff; }
.hero .eyebrow { opacity: .9; }
.hero h1 { text-shadow: 0 2px 30px rgba(70,55,45,.25); }
.hero .btn-primary { background: #fff; color: var(--accent); border-color: #fff; }
.hero .btn-primary:hover { background: var(--paper); }
.hero .btn-ghost { color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--accent); }
.intro-band { background: var(--accent); }
.book-cover { width: 100%; }
.poem {
  font-family: var(--font-head); font-size: 1.25rem; line-height: 2;
  text-align: center; margin: 1.5rem 0; padding: 1.5rem;
  background: var(--paper-2); border-radius: var(--radius);
}
.poem strong { display: block; font-family: var(--font-body); margin-bottom: .5rem; }
.poem .last { margin-top: 1rem; display: block; }
.page-hero { background: url("../assets/hero-bg.svg") center / cover, var(--cover); color: #fff; border: 0; }
.page-hero p { color: #fff; opacity: .92; }
.logo, .nav a { white-space: nowrap; }
.poem { line-height: 1.75; }
@media (max-width: 1040px) and (min-width: 861px) {
  .nav { gap: 1.2rem; font-size: .95rem; }
  .nav .btn { padding: .5em 1.1em; }
}
section[id] { scroll-margin-top: 72px; }
@media (max-width: 860px) { .hero-photo { max-width: 260px; } .hero h1 { font-size: 3rem; } }

/* Varela Round מגיע במשקל אחד, לכן הכותרות בלי הדגשה מלאכותית */
h1, h2, h3, .logo { font-weight: 400; }
.btn, .nav a, .tag, .poem strong { font-weight: 400; }

/* ----- צבעוניות "בציר 1976": קרם, שמש וכרם ----- */
.hero h1 { color: var(--accent); text-shadow: none; }
.hero .lead { color: var(--ink-soft); }
.hero .eyebrow { color: #b86f00; opacity: 1; }
.hero .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero .btn-primary:hover { background: #152a1b; }
.hero .btn-ghost { color: var(--accent); border-color: var(--accent); }
.hero .btn-ghost:hover { background: var(--accent); color: #fff; }
.hero-photo { box-shadow: 0 30px 60px rgba(150, 90, 0, .25); border: 6px solid #fff8ea; }
.page-hero { color: var(--accent); }
.page-hero p { color: var(--ink-soft); }
.book .tag { background: #fde3b0; color: #8a5300; }
.service .icon { filter: saturate(.8); }
.service h3, .section-title, .post-card h3 { color: var(--accent); }
.nav a.active { border-bottom-color: var(--accent-2); }
.intro-band a { color: #f8cf7a; }
.site-footer { background: #142219; }

/* ----- השקה ----- */
.launch {
  background: var(--accent); color: #fbefd5;
}
.launch .container { display: grid; grid-template-columns: 1fr 420px; gap: 3.5rem; align-items: center; }
.launch img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.launch .date { color: #f6b23c; font-size: 1.2rem; letter-spacing: .05em; }
.launch h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: #fff; }
.launch p { font-size: 1.15rem; opacity: .92; max-width: 560px; }
.launch .btn { background: #f6b23c; border-color: #f6b23c; color: var(--accent); }
.launch .btn:hover { background: #ffc85a; }
@media (max-width: 900px) {
  .launch .container { grid-template-columns: 1fr; }
  .launch img { max-width: 380px; margin-inline: auto; order: -1; }
}

/* כפתורי "לקריאה" ו"הורדה" מופיעים רק במעבר עכבר (או בניווט מקלדת) */
@media (hover: hover) {
  .article .links { opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .article:hover .links, .article:focus-within .links { opacity: 1; visibility: visible; }
  .article { transition: box-shadow .2s, border-color .2s; }
  .article:hover { border-color: var(--accent-2); box-shadow: 0 10px 24px rgba(150, 90, 0, .1); }
}
