/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #E4D6BD;
  --surface: #D8C9AC;
  --border:  #C4B48E;
  --text:    #0a0806;
  --muted:   #837659;
  --accent:  #6E4B26;
  --font-display: 'Fraunces', 'Noto Serif Hebrew', Georgia, serif;
  --font-body:    'Noto Serif Hebrew', Georgia, serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  direction: rtl;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text); }

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  transition: background 0.35s;
}

#nav.scrolled {
  background: rgba(244, 241, 236, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.18em;
  color: var(--text);
}

.nav-links { display: flex; gap: 2.4rem; }

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }

/* ===== HERO — photo left · text right (RTL layout) ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 54% 46%;
  overflow: hidden;
}

.hero-img-wrap {
  /* In RTL grid, first child → LEFT column */
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero-portrait {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.04) saturate(0.88);
}

/* Hard edge — no gradient */
.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  /* subtle vignette only at the seam */
  background: linear-gradient(to right, transparent 70%, var(--bg) 100%);
}

.hero-content {
  /* In RTL grid, second child → RIGHT column */
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 3.5rem 5rem 3rem;
  background: var(--bg);
  overflow: visible;
}

/* YONASH bleeds left into photo */
.hero-yonash {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9.5vw, 12rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.85;
  color: var(--text);
  margin-bottom: 2.2rem;
  /* extend text left into photo column */
  margin-left: -28%;
  position: relative;
  z-index: 3;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.hero-body {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 2;
  color: var(--muted);
  margin-bottom: 2.8rem;
}
.hero-body em { color: var(--text); font-style: italic; }

.hero-cta {
  display: inline-block;
  align-self: flex-start;
  padding: 0.85rem 2.4rem;
  border: 1px solid var(--text);
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.hero-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-hint span {
  display: block;
  width: 1px; height: 55px;
  background: var(--muted);
  opacity: 0.4;
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); opacity: 0.4; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ===== SECTIONS ===== */
section {
  padding: 8rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

#contact, #video {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: visible;
}

.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Watermark number */
.section-header::before {
  position: absolute;
  top: 50%;
  right: -1rem;
  transform: translateY(-62%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: min(32vw, 300px);
  font-weight: 300;
  color: var(--text);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
#gallery .section-header::before { content: "01"; }
#video   .section-header::before { content: "02"; }
#contact .section-header::before {
  content: "03";
  right: auto; left: 50%;
  transform: translateX(-50%) translateY(-62%);
}
.section-header > * { position: relative; z-index: 1; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.44em;
  color: var(--accent);
  text-transform: uppercase;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--text);
}

.section-sub {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 1rem;
  font-style: italic;
  font-family: var(--font-display);
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  position: relative;
  padding: 0.55rem 1.4rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s;
}
.filter-btn:hover {
  color: var(--text);
  transform: translateY(-5px);
}
.filter-btn.active { color: var(--text); }
.filter-btn.active::after {
  content: '';
  position: absolute;
  left: 1.4rem; right: 1.4rem;
  bottom: 0.15rem;
  height: 1px;
  background: var(--text);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 2px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* Grayscale → color reveal */
.gallery-item img {
  filter: grayscale(100%);
  transition: filter 0.6s ease, transform 0.6s ease;
}
.gallery-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  background: var(--text);
  padding: 0.2rem 0.6rem;
}

.gallery-item.hidden { display: none; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0; z-index: 999;
  background: rgba(8, 8, 8, 0.97);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw; max-height: 82vh;
  width: auto; height: auto;
  object-fit: contain;
}

#lbCaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
}
.lightbox-close { top: 1.5rem; left: 1.5rem; font-size: 1.6rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2.8rem; }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2.8rem; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: #fff; }

/* ===== VIDEO ===== */
#video {
  padding: 8rem 2.5rem;
  background: var(--surface);
  max-width: 100%;
}

#video > * { max-width: 1400px; margin-left: auto; margin-right: auto; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

/* Minimal card: video on top, caption below */
.video-card {
  background: transparent;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.video-card:hover { transform: translateY(-6px); }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--bg);
}
.video-wrapper iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}

.video-info {
  padding: 1.1rem 0.2rem 0;
}
.video-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.video-info p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ===== CONTACT ===== */
#contact { padding: 8rem 2.5rem; }

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  direction: rtl;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--border); }
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--accent); }

.form-group textarea { min-height: 100px; }

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  background: var(--text);
  border: none;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--accent); }

.form-success {
  display: none;
  text-align: center;
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

footer p {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.footer-socials { display: flex; gap: 1.6rem; }
.footer-socials a {
  color: var(--muted);
  transition: color 0.15s;
}
.footer-socials a:hover { color: var(--accent); }

/* ===== FADE-IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s ease-out, transform 0.42s ease-out;
  will-change: opacity, transform;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }
  .video-grid { gap: 2rem 1.5rem; }
}

/* Mobile landscape / small tablet */
@media (max-width: 900px) {
  section { padding: 5rem 1.5rem; }
  #video  { padding: 5rem 1.5rem; }
  #contact { padding: 5rem 1.5rem; }
  #nav { padding: 1.2rem 1.5rem; }
  .nav-links { gap: 1.4rem; }

  /* Hero: stack vertically on mobile */
  #hero {
    grid-template-columns: 1fr;
    grid-template-rows: 58vh auto;
  }
  .hero-img-wrap { height: 58vh; }
  .hero-img-wrap::after {
    background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
  }
  .hero-content {
    padding: 2.5rem 1.5rem 4rem;
    justify-content: flex-start;
  }
  .hero-yonash {
    font-size: clamp(3.5rem, 14vw, 7rem);
    margin-left: 0; /* no bleed on mobile */
    margin-bottom: 1.4rem;
  }

  /* Video: single column on mobile */
  .video-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  footer { flex-direction: column; gap: 1rem; text-align: center; }

  .section-header::before { display: none; }
}

/* Mobile portrait */
@media (max-width: 580px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.wide { grid-column: span 1; }
  .gallery-item.tall { grid-row: span 1; }

  .nav-links { display: none; }

  #hero {
    grid-template-rows: 54vh auto;
  }
  .hero-img-wrap { height: 54vh; }
  .hero-yonash { font-size: clamp(2.8rem, 13vw, 5rem); }
}
