/* ===== צבעים וטיפוגרפיה ===== */
:root {
  --cream: #faf5ec;
  --cream-dark: #f1e7d6;
  --crust: #8b4a1c;
  --crust-dark: #5e3012;
  --wheat: #d9a441;
  --ink: #2e2219;
  --muted: #6e5d4f;
  --white: #fff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(70, 40, 15, 0.1);
  --header-h: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "Heebo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

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

a { color: var(--crust); }

h1, h2, h3 {
  font-family: "Frank Ruhl Libre", serif;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow { max-width: 780px; }
.center { text-align: center; }

/* כך שהכותרת לא תוסתר מתחת לתפריט הקבוע בזמן גלילה לעוגן */
section[id] { scroll-margin-top: var(--header-h); }

/* ===== תפריט עליון ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(139, 74, 28, 0.12);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--crust-dark);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s;
}

.site-nav a:hover { background: var(--cream-dark); }

.site-nav a.active { color: var(--crust); font-weight: 500; }

.site-nav .nav-cta {
  background: var(--crust);
  color: var(--white);
}

.site-nav .nav-cta:hover { background: var(--crust-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--crust-dark);
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    padding: 8px 20px 16px;
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
}

/* ===== פתיח ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: url("../images/gallery/06-slicing.jpeg") center 60% / cover no-repeat;
  padding-top: var(--header-h);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 22, 10, 0.55), rgba(40, 22, 10, 0.75));
}

.hero-content { position: relative; text-align: center; }

/* "עם / ידידיה לוי / 3.5 שעות" - שלוש שורות ממורכזות */
.hero-kicker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 0 28px;
}

.hero-kicker-small {
  font-size: 1.1rem;
  opacity: 0.9;
}

.hero-name {
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.2;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 900;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 300;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== כפתורים ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--wheat); color: var(--ink); }
.btn-primary:hover { background: #e6b556; }

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  font-size: 1.25rem;
  padding: 16px 32px;
}

.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-whatsapp svg { width: 28px; height: 28px; }

/* ===== נושאים ===== */
.topics {
  padding: 64px 0;
  background: var(--white);
}

.topics .section-title { text-align: center; }

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
}

.topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 12px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--wheat);
}

.topic-icon { font-size: 2rem; }

.topic-card-cta {
  background: var(--crust);
  color: var(--white);
  border-color: var(--crust);
}

/* ===== מקטעים ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--cream-dark); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--crust-dark);
  margin-bottom: 28px;
}

.sub-title {
  font-size: 1.5rem;
  color: var(--crust);
  margin-top: 40px;
}

.lead { font-size: 1.2rem; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-icon { font-size: 1.5rem; line-height: 1.4; }

/* ===== סילבוס ===== */
.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.syllabus-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--wheat);
}

.syllabus-num {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--wheat);
}

.syllabus-card h3 { font-size: 1.35rem; color: var(--crust-dark); }
.syllabus-card p { margin: 0; color: var(--muted); }

/* ===== גלריה ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-item {
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
  background: var(--cream-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.05); }

/* ===== לוגואים ===== */
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.logo-item {
  width: 150px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  text-align: center;
}

.logo-item img {
  max-height: 64px;
  object-fit: contain;
}

.logo-item span { font-weight: 500; font-size: 0.95rem; color: var(--crust-dark); }

/* כשאין קובץ לוגו - מציגים רק את השם בגדול */
.logo-item.no-logo span {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.3rem;
}

/* ===== המלצות - בעיצוב צ'אט וואטסאפ ===== */
/* רשת סימטרית - 3 בשורה, וכל החלונות באותה שורה באותו גובה */
.wa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .wa-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

.wa-chat {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #008069;
  color: var(--white);
}

.wa-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dfe5e7;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.wa-title { font-weight: 500; line-height: 1.3; }
.wa-subtitle { font-size: 0.8rem; opacity: 0.85; }

.wa-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 16px 16px 18px;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
}

.wa-msg {
  position: relative;
  margin-inline-start: 8px;
  padding: 6px 10px 6px;
  background: var(--white);
  border-radius: 8px;
  border-start-start-radius: 0;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  font-size: 1rem;
  line-height: 1.5;
}

/* "הזנב" של הבועה, בפינה העליונה מימין */
.wa-msg::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: -8px;
  width: 8px;
  height: 13px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.wa-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1f7aec;
}

.wa-msg:nth-child(3n + 2) .wa-name { color: #d3396d; }
.wa-msg:nth-child(3n) .wa-name { color: #06a77d; }

.wa-msg p { margin: 0; }

.wa-time {
  display: block;
  text-align: left;
  font-size: 0.7rem;
  color: #667781;
  margin-top: 2px;
}

/* ===== אודות ===== */
.about {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* "בנימה אישית" - פנייה אישית של ידידיה */
.about-personal {
  margin: 28px 0 0;
  padding: 20px 24px;
  background: var(--white);
  border-inline-start: 4px solid var(--wheat);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.about-personal p { margin: 0 0 8px; }

.about-personal-title {
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--crust-dark);
}

.about-personal footer {
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 700;
  color: var(--crust);
}

/* ===== רשתות חברתיות ===== */
.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: transform 0.15s;
}

.social-btn:hover { transform: translateY(-2px); }
.social-btn svg { width: 24px; height: 24px; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.social-btn.facebook { background: #1877f2; }

/* ===== יצירת קשר ===== */
.contact {
  background: var(--crust-dark);
  color: var(--white);
}

.contact .section-title { color: var(--white); }

/* ===== פוטר ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* ===== כפתורים צפים ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 40;
  transition: transform 0.2s;
}

.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; }

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--crust);
  color: var(--white);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1.3rem;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; }
/* ===== תמונה מוגדלת ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-height: 88vh;
  max-width: 88vw;
  border-radius: 8px;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close { top: 16px; left: 16px; }
.lightbox-prev { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { left: 16px; top: 50%; transform: translateY(-50%); }
