/* Regular weight */
@font-face {
  font-family: "Satat";
  src: url("fonts/Satat-Regular.woff2?v=3") format("woff2"),
    url("fonts/Satat-Regular.ttf?v=3") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Bold weight (temporary mapping to regular file) */
@font-face {
  font-family: "Satat";
  src: url("fonts/Satat-Regular.woff2?v=3") format("woff2"),
    url("fonts/Satat-Regular.ttf?v=3") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Apply to everything */
html,
body,
button,
input,
textarea {
  font-family: "Satat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* {
  font-family: inherit;
}

/* ===== THEME ===== */
:root {
  --green-600: #436d61;
  --green-500: #4a7b6c;
  --sky-200: #c9d2fb; /* רקע לילך/כחלחל */
  --paper: #ffffff;
  --text: #111;
  --muted: #5f5f5f;
  --edge: #e5e5e5;
  --brand1: #0d6170; /* כותרת ענק גרדיאנט */
  --brand2: #0a5bb9;
  --shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}
body {
  font-family: "Satat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.6rem;
}
section {
  padding: 3.5rem 0;
}
h1,
h2,
h3 {
  font-weight: 700;
}
h2 {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}
.muted {
  color: var(--muted);
}

/* ===== TOP BAR ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green-600);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}
.menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  font-size: 1rem;
}
.menu a {
  opacity: 0.92;
}
.menu a:hover {
  opacity: 1;
}
.lang {
  background: #fff;
  color: #1a1a1a;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
}

/* ===== BIG TITLE ===== */
.title-hero{
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* This makes the section match the image height exactly */
.hero-img{
  width: 100%;
  height: auto;      /* keeps exact proportions */
  display: block;    /* removes weird gaps */
}

/* Title sits ON TOP of the image */
.bigtitle{
  position: absolute;
  top: 3rem;       /* distance from top */
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 1rem;
  text-align: center;
  width: 100%;
  z-index: 2;

  /* keep your gradient text if you want */
  font-size: clamp(4rem, 10vw, 11rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.title-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.30), rgba(0,0,0,0));
  z-index: 1;
  pointer-events: none;
}
.bigtitle{ z-index: 2; }
.bigtitle{
  text-shadow:
    0 0 10px rgba(255,255,255,0.24),
    0 0 24px rgba(255,255,255,0.18),
    0 0 42px rgba(255,255,255,0.14);
}

/* ===== SPLIT HERO STRIP ===== */
.strip {
  background: var(--sky-200);
  padding: 0rem 0 0;
}
.strip-grid {
  display:flex;
  gap: 0rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0rem 0rem;
}
.card {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
  box-shadow: var(--shadow);
}
.card img {
  width: 100%;
  height:100%;
  object-fit: cover;
}
.center-caption {
  position: relative;
  inset: auto 50% 1.2rem auto;
  transform: translateX(50%);
  background: var(--green-600);
  color: #fff;
  border-radius: 8px;
  padding:0rem;
  margin-top: 1rem;
  box-shadow: var(--shadow);
  font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  max-width: min(90%, 640px);
  text-align: center;
}



/* ===== LIFE SECTION ===== */
.life {
  background: var(--sky-200);
}
.life-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0rem;
  align-items: center;
}
.life .imgbox {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
}

/* ===== GALLERY ===== */
.gallery .section-title {
  text-align: center;
  margin-bottom: 1.4rem;
}
.rail-wrap {
  position: relative;
}
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.4rem 3.6rem 0.8rem;
  max-width: 100%;
}
.rail::-webkit-scrollbar {
  height: 10px;
}
.rail::-webkit-scrollbar-thumb {
  background: #c9c9c9;
  border-radius: 999px;
}
.shot {
  flex: 0 0 260px;
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--edge);
  scroll-snap-align: start;
  background: #eee;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.prev {
  right: 8px;
}
.next {
  left: 8px;
}

/* ===== VIDEOS (GRID) — FIXED ===== */
.videos .section-title{
  text-align: center;
  margin-bottom: 1rem;
}

/* 3 columns desktop */
.videos .video-grid{
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

/* video card */
.videos .video-card{
  border: 1px solid var(--edge);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* subtle hover shadow */
.videos .video-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}

/* IMPORTANT: make the button cover the whole clickable area */
.videos .video-click{
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* frame keeps nice proportions (MEDIUM height) */
.videos .video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;   /* medium; change to 16/7 smaller, 16/9 bigger */
  overflow: hidden;
  background: #000;
}

/* video fills frame */
.videos .video-frame video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  /* key: don't let the video element steal clicks */
  pointer-events: none;
}

/* Play icon overlay */
.videos .video-frame::after{
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;

  font-size: 3rem;
  color: #fff;

  background: rgba(0,0,0,0.18);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;

  /* key: don't let overlay steal clicks */
  pointer-events: none;

  text-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

/* show icon on hover */
.videos .video-card:hover .video-frame::after{
  opacity: 1;
  transform: scale(1.02);
}

/* title + caption */
.videos .video-meta{
  padding: 0.9rem 1rem 1rem;
}

.videos .video-title{
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.videos .video-caption{
  font-size: 0.95rem;
  color: var(--muted);
}

/* responsive */
@media (max-width: 1024px){
  .videos .video-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .videos .video-grid{
    grid-template-columns: 1fr;
  }

  /* mobile: slightly taller looks better */
  .videos .video-frame{
    aspect-ratio: 16 / 9;
  }

  /* no hover on mobile; keep icon faintly visible */
  .videos .video-frame::after{
    opacity: 0.35;
  }
}


/* ===== OVERLAY FORM ===== */
.mem-form {
  position: relative;
  min-height: 60vh;
  display: grid;
  place-items: center;

}
.mem-form .bg {
  position: absolute;
  inset: 0;
  background: url("images/159cfb1e-d0c3-4a74-8b10-b0ea0cec742e.jpg")
    center/cover no-repeat;
  opacity: 0.7;
}
.panel {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: min(720px, 92%);
  padding: 1.4rem;
}
.panel h3 {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  text-align: center;
}
.panel p {
  margin-bottom: 1rem;
  text-align: center;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.panel input,
.panel textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.panel textarea {
  min-height: 140px;
  resize: vertical;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: var(--green-600);
  color: #fff;
  text-align: center;
  border: none;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.05);
}

/* ===== SUBSCRIBE ===== */
.subscribe {
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background: #fafafa;
}
.sub-wrap {
  max-width: 700px;
  margin: 0 auto;
}
.sub-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.sub-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.sub-input {
  padding: 0.8rem 0.9rem;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  font: inherit;
}
.sub-btn {
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* ===== MEMORIES (Zichronot) ===== */
.memories {
  background: #fff;
}
.memories .section-title {
  text-align: center;
  margin-bottom: 1.2rem;
}

/* Masonry using CSS columns */
.masonry {
  column-count: 3;
  column-gap: 16px;
}
.post {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.post img {
  width: 100%;
  height: auto;
  display: block;
}
.post .post-body {
  padding: 1rem;
}
.post .post-author {
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.post .post-text {
  white-space: pre-wrap;
}
.post .post-meta {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== FORM BOX STYLE ===== */
.form-box {
  background: rgba(255,255,255,0.92);
  padding: 2rem 2.2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--edge);
  text-align: right;
}
.form-box h3 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  text-align: center;
}
.form-box p {
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text);
}
.form-box form input,
.form-box form textarea {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-box form input:focus,
.form-box form textarea:focus {
  background: #fff;
  border-color: var(--green-500);
  outline: none;
}

/* responsive column counts */
@media (max-width: 1024px) {
  .masonry {
    column-count: 2;
  }
}
@media (max-width: 640px) {
  .masonry {
    column-count: 1;
  }
}

/* small helper for empty state */
.empty {
  text-align: center;
  color: var(--muted);
  padding: 1.2rem 0 0;
}

/* ===== EVENTS ===== */
.events .section-title {
  text-align: center;
  margin-bottom: 1.4rem;
}
.event {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--edge);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.event img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event .info {
  padding: 1.2rem;
}
.event .info h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.event .info p {
  margin-bottom: 0.8rem;
}

/* ===== FOOTER ===== */
footer {
  padding: 2.2rem 1.6rem;
  text-align: center;
  color: #777;
  border-top: 1px solid var(--edge);
}

/* ===== MOBILE ===== */
@media (max-width: 920px) {
  .strip-grid {
    grid-template-columns: 1fr;
    padding-bottom: 1.6rem;
  }
  .life-grid {
    grid-template-columns: 1fr;
  }
  .event {
    grid-template-columns: 1fr;
  }
}
/* --- Fix images globally --- */
img {
  max-width: 100%;
  height: auto;
}

/* --- Make the top menu wrap on mobile --- */
.menu{
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
}

/* --- HERO: make the title placement better on small screens --- */
@media (max-width: 700px){
  .bigtitle{
    top: 1.2rem;
    font-size: clamp(2.4rem, 12vw, 5rem);
  }
}

/* --- FIX strip-grid: choose ONE layout method (grid) --- */
.strip-grid{
  display: grid; /* overrides your flex */
  grid-template-columns: 1fr; /* default single column */
  gap: 1rem;
  padding: 0 1rem 1.2rem;
}

/* If you want 2 columns on larger screens */
@media (min-width: 800px){
  .strip-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- FIX invalid object-fit --- */
.card img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* or 'contain' if you don't want cropping */
}

/* --- FIX center-caption: true centered block --- */
.center-caption{
  position: static;     /* stop inset/transform tricks */
  transform: none;
  inset: auto;
  margin: 1rem auto 0;
  padding: 1rem 1.2rem;
}

/* --- LIFE + EVENTS already use grid; just ensure spacing on mobile --- */
@media (max-width: 920px){
  .wrap{
    padding: 0 1rem;
  }

  section{
    padding: 2.5rem 0;
  }

  .life-grid{
    gap: 1.2rem;
  }

  .event{
    gap: 0;
  }
}

/* --- Videos thumbnails: make them nicer on small screens --- */
@media (max-width: 700px){
  .thumb{
    flex: 0 0 140px;
    height: 90px;
  }
}
/* ===== FORM BOX BACKGROUND IMAGE ===== */
.form-box{
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.82);
}

.form-box::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.60), rgba(255,255,255,0.20)),
    url("images/IMG_9261.JPG") center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.form-box > *{
  position: relative;
  z-index: 1;
}
/* Hide the modal by default so it doesn't appear as an extra box */
#videoModal{
  display: none;
}

/* Show it only when JS adds .is-open */
#videoModal.is-open{
  display: block;
  position: fixed;
  inset: 0;
  z-index: 3000;
}
/* ===== VIDEO MODAL: BIGGER (almost fullscreen) ===== */
#videoModal.is-open{
  display: block;
  position: fixed;
  inset: 0;
  z-index: 3000;
}

#videoModal .video-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

/* make the panel much larger */
#videoModal .video-modal-panel{
  position: relative;
  margin: 2vh auto 0;
  width: min(1200px, 96vw);
  height: 96vh;              /* key */
  max-height: 96vh;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* header stays small */
#videoModal .video-modal-header{
  padding: 0.75rem 1rem;
  color: #fff;
  text-align: center;
}

/* body takes the rest */
#videoModal .video-modal-body{
  position: relative;
  padding: 0 1rem 1rem;
  display: grid;
  place-items: center;
}

/* video grows big but never overflows */
#videoModal #videoModalPlayer{
  width: 100%;
  height: 100%;
  max-height: calc(96vh - 80px); /* subtract header area */
  object-fit: contain;           /* no cropping */
  background: #000;
  border-radius: 12px;
}

/* keep arrows visible */
#videoModal .video-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
  z-index: 5;
}
#videoModal .video-nav.prev{ right: 12px; }
#videoModal .video-nav.next{ left: 12px; }

/* close button */
#videoModal .video-modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
  z-index: 6;
}
