/* ==========================================================================
   TOKENS
   ========================================================================== */
:root{
  --bg:      #ffffff;
  --ink:     #111111;
  --ink-dim: #6b6b6b;
  --line:    #e4e4e4;
  --accent:  #c1442e;

  --font-body: "Inter", -apple-system, sans-serif;

  --sidebar-w: 220px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --ease: cubic-bezier(.16,.84,.44,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }

.skip-link{
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 0.6em 1em;
}
.skip-link:focus{ left: 1rem; top: 1rem; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

/* ==========================================================================
   LAYOUT SHELL — right-side sidebar, like the reference layout
   ========================================================================== */
.sidebar{
  position: fixed;
  inset: 0 0 0 auto;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding: 2rem 1.75rem;
  border-left: 1px solid var(--line);
  background: var(--bg);
  z-index: 40;
}

.brand{ font-size: 0.95rem; font-weight: 600; }

.nav ul{ display: flex; flex-direction: column; gap: 0.65rem; }
.nav__link{
  font-size: 0.92rem;
  color: var(--ink-dim);
  transition: color 0.2s var(--ease);
}
.nav__link:hover, .nav__link.is-active{ color: var(--ink); }

.social{ display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }
.social a{ font-size: 0.82rem; color: var(--ink-dim); transition: color 0.2s var(--ease); }
.social a:hover{ color: var(--accent); }

.copyright{ font-size: 0.72rem; color: var(--ink-dim); margin: 0; }

.mobile-bar{ display: none; }
.backdrop{ display: none; }

main{ margin-right: var(--sidebar-w); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{ padding: 3.5rem var(--gutter) 1.5rem; }
.hero__title{ font-size: 1.6rem; font-weight: 600; margin: 0 0 0.4rem; }
.hero__subtitle{ color: var(--ink-dim); margin: 0; max-width: 60ch; }

/* ==========================================================================
   WORK — filters + project blocks
   ========================================================================== */
.work{ padding-bottom: 2rem; }

.filters{
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  padding: 0 var(--gutter) 1.5rem;
}
.filter{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.78rem;
  padding: 0.45em 0.95em;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter:hover{ color: var(--ink); border-color: var(--ink-dim); }
.filter.is-active{ background: var(--ink); border-color: var(--ink); color: #fff; }

.project{ padding: 1.5rem var(--gutter) 0.5rem; border-top: 1px solid var(--line); }
.project:first-of-type{ border-top: none; }
.project__head{ margin-bottom: 1rem; }
.project__title{
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;       /* משקל דק ונקי בדיוק כמו התפריט */
  font-size: 1.15rem;     /* גודל עדין ולא מנופח */
  letter-spacing: -0.01em;
  color: #111;
  margin-bottom: 0.75rem;
}
.project__meta{ font-size: 0.85rem; color: var(--ink-dim); margin: 0; }

.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-bottom: 2rem;
}
.grid__item{
  margin: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #f2f2f2;
}
.grid__item.is-hidden{ display: none; }

.grid__item img{
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.grid__item:hover img{ transform: scale(1.04); }

.grid__item figcaption{
  position: absolute; inset: auto 0 0 0;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 90%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.grid__item:hover figcaption{ opacity: 1; }
.cap-title{ color: #fff; font-size: 0.8rem; }

/* ==========================================================================
   SECTION HEAD (about / contact)
   ========================================================================== */
.section-title{ font-size: 1.1rem; font-weight: 600; padding: 2.5rem var(--gutter) 1.25rem; margin: 0; border-top: 1px solid var(--line); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about__grid{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 0 var(--gutter) 3rem;
  align-items: start;
}
.about__photo img{ aspect-ratio: 4 / 5; object-fit: cover; }
.about__body p{ color: var(--ink-dim); margin: 0; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact__grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 0 var(--gutter) 4rem;
}

.contact-form{ display: flex; flex-direction: column; gap: 1rem; }
.field{ display: flex; flex-direction: column; gap: 0.35rem; }
.field label{ font-size: 0.78rem; color: var(--ink-dim); }
.field input, .field textarea{
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.7em 0.85em;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border-radius: 2px;
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field textarea:focus{ border-color: var(--ink); }
.btn{
  align-self: flex-start;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink);
  padding: 0.75em 1.5em;
  font-size: 0.88rem;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}
.btn:hover{ opacity: 0.85; }
.hp{ position: absolute; left: -9999px; }
.form-status{ font-size: 0.8rem; color: var(--ink-dim); min-height: 1.2em; margin: 0; }

.contact-direct{ display: flex; flex-direction: column; gap: 0.7rem; padding-top: 0.2rem; }
.contact-direct__link{
  font-size: 0.95rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
  width: fit-content;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.contact-direct__link:hover{ color: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox{
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.94);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: 2rem;
}
.lightbox.is-open{ opacity: 1; visibility: visible; pointer-events: auto; }

.lightbox__figure{ margin: 0; max-width: min(90vw, 1100px); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.lightbox__figure img{ max-height: 80vh; width: auto; object-fit: contain; }
.lightbox__figure figcaption{ color: #ccc; font-size: 0.82rem; text-align: center; }

.lightbox__close, .lightbox__nav{
  position: absolute;
  background: transparent; border: none; color: #fff;
  cursor: pointer; font-size: 2rem; line-height: 1;
  transition: opacity 0.2s var(--ease);
}
.lightbox__close{ top: 1.5rem; right: 1.75rem; font-size: 2.1rem; }
.lightbox__nav{ top: 50%; transform: translateY(-50%); font-size: 2.8rem; padding: 0.5rem 1rem; }
.lightbox__nav--prev{ left: 0.5rem; }
.lightbox__nav--next{ right: 0.5rem; }
.lightbox__close:hover, .lightbox__nav:hover{ opacity: 0.6; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px){
  .about__grid{ grid-template-columns: 1fr; }
  .about__photo{ max-width: 280px; }
  .contact__grid{ grid-template-columns: 1fr; }
}

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

  .mobile-bar{
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: 1rem var(--gutter);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
  }
  .mobile-bar__mark{ font-weight: 600; }

  .hamburger{
    width: 32px; height: 32px; display: flex; flex-direction: column;
    justify-content: center; gap: 5px; background: none; border: none; cursor: pointer;
  }
  .hamburger span{ width: 100%; height: 1px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
  .hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  .sidebar{
    inset: 0 0 0 auto;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    padding-top: 5rem;
    border-left: 1px solid var(--line);
  }
  .sidebar.is-open{ transform: translateX(0); }

  .backdrop{
    display: block; position: fixed; inset: 0; z-index: 39;
    background: rgba(0,0,0,0.35);
    opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
  }
  .backdrop.is-open{ opacity: 1; pointer-events: auto; }

  main{ margin-right: 0; padding-top: 4rem; }
  .grid__item figcaption{ opacity: 1; }
}

@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
}
/* ================= LIGHTBOX FIX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none; /* כבוי כברירת מחדל */
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.lightbox.is-open {
  display: flex !important; /* מוצג מיידית בלחיצה */
}

.lightbox__figure {
  max-width: 90vw;
  max-height: 85vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox__figure img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.lightbox__figure figcaption {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  margin-top: 14px;
  letter-spacing: 0.02em;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 10px;
  z-index: 100001;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
  transition: background 0.2s;
}

.lightbox__nav:hover,
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__nav--prev { left: 25px; }
.lightbox__nav--next { right: 25px; }

.grid__item img {
  cursor: pointer;
}
/* ================= TOP RIGHT ACTION BUTTON ================= */
.hero__wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  gap: 20px;
}

.btn-book {
  display: inline-block !important;
  background-color: #111111 !important; /* שחור סולידי */
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important; /* פונט בולט כמו בדוגמה */
  text-decoration: none !important;
  padding: 10px 20px !important;
  border-radius: 2px !important; /* מלבן חד ונקי */
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  transition: opacity 0.2s ease, transform 0.15s ease !important;
}

.btn-book:hover {
  opacity: 0.85 !important;
  transform: translateY(-1px) !important;
}
/* ================= WORK WITH ME MODAL ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex !important;
}

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  padding: 32px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  border-radius: 4px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  color: #222;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px 0;
}

.modal-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.45;
  margin: 0 0 20px 0;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  color: #111;
  outline: none;
  border-radius: 2px;
}

.modal-form input:focus,
.modal-form textarea:focus {
  border-color: #111;
}

.modal-form textarea {
  resize: vertical;
}

.modal-send-btn {
  background-color: #111111;
  color: #ffffff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.2s;
  width: 100%;
  border-radius: 2px;
}

.modal-send-btn:hover {
  opacity: 0.85;
}

/* מיקוד תמונות אנכיות */
.grid__item img.is-portrait {
  object-fit: cover !important;
  object-position: center 80% !important;
}