/* =====================================================
   דנה קציר · Stills Photography
   עיצוב: לבן-נייר חמים, טיפוגרפיה עריכתית, הבמה לתמונות
   ===================================================== */

:root {
  --bg: #FBFAF8;
  --bg-tint: #F5F2EB;
  --ink: #1c1b19;
  --ink-soft: #43413c;
  --muted: #8f887b;
  --line: #E8E4DB;
  --accent: #A8946D;
  --serif: "Frank Ruhl Libre", "Times New Roman", serif;
  --sans: "Assistant", "Helvetica Neue", Arial, sans-serif;
  --wide: 1580px;
  --narrow: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: #EAE2D2; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 18px; z-index: 200;
}
.skip:focus { inset-inline-start: 8px; }

.container { max-width: var(--narrow); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.container-wide { max-width: var(--wide); margin-inline: auto; padding-inline: clamp(14px, 2.5vw, 36px); }

/* ---------- כותרת עליונה ---------- */

.site-header { text-align: center; padding: clamp(26px, 4vw, 44px) 20px 0; }

.logo { display: inline-block; }
.logo img {
  height: clamp(96px, 12vw, 138px);
  width: auto;
  mix-blend-mode: multiply;        /* מטמיע את רקע ה-JPG ברקע האתר */
  filter: brightness(1.06);        /* מרים את הרקע הבז׳ של הקובץ ללבן מלא כדי שה-multiply יעלים אותו */
}

.main-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(16px, 2.6vw, 34px);
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 400; font-size: 14.5px; letter-spacing: .12em;
}
.main-nav a {
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) bottom right / 0 1px no-repeat;
  transition: background-size .4s ease, color .3s ease;
}
.main-nav a:hover { background-size: 100% 1px; }
.main-nav a[aria-current="page"] {
  color: var(--accent);
  background: linear-gradient(currentColor, currentColor) bottom right / 100% 1px no-repeat;
}

/* פס עליון דביק שמופיע בגלילה */
.topbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 90;
  transform: translateY(-100%);
  transition: transform .38s ease;
  background: rgba(251, 250, 248, .93);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body.scrolled .topbar { transform: translateY(0); }
.topbar-inner {
  max-width: var(--wide); margin-inline: auto;
  padding: 0 clamp(18px, 3vw, 36px);
  height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.topbar .wordmark { font-family: var(--serif); font-size: 18px; letter-spacing: .02em; }
.topbar nav { display: flex; gap: clamp(12px, 2vw, 26px); font-size: 13px; font-weight: 400; letter-spacing: .1em; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--accent); }

/* ---------- אלמנטים חוזרים ---------- */

.eyebrow {
  font-size: 11px; font-weight: 400; letter-spacing: .42em;
  color: var(--muted);
  text-transform: uppercase;
  direction: ltr;
}

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.25; letter-spacing: .01em; }
h1 { font-size: clamp(32px, 4.6vw, 48px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }

/* קו-אמצע עדין עם מעוין */
.orn { display: flex; align-items: center; gap: 12px; width: 130px; margin-block: 18px 26px; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.orn i { width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); flex: none; }
.orn.center { margin-inline: auto; }

.sec-head { text-align: center; margin-bottom: clamp(30px, 4.5vw, 52px); }
.sec-head .sec-sub { color: var(--muted); font-size: 15.5px; margin-top: -8px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--ink);
  padding: 11px 28px;
  font-size: 14px; font-weight: 400; letter-spacing: .1em;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- אנימציית חשיפה ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- דף הבית: פתיחה ---------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(30px, 5.5vw, 84px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 78px) clamp(44px, 6vw, 84px);
}
.intro-text h1 { margin-top: 10px; }
.intro-copy p { margin-bottom: 1.15em; color: var(--ink-soft); }
.intro-copy p:last-child { margin-bottom: 0; }
.intro-copy a { border-bottom: 1px solid var(--accent); transition: color .3s; }
.intro-copy a:hover { color: var(--accent); }
.intro-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.intro-media img { width: 100%; height: auto; box-shadow: 0 24px 70px -30px rgba(60, 48, 25, .35); }

/* ---------- דף הבית: קטגוריות ---------- */

.cats-section { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 40px); }

.cat-card { display: block; }
.card-media { display: block; overflow: hidden; background: #F1EEE7; }
.card-media img {
  width: 100%; height: auto;
  transition: transform 1.2s cubic-bezier(.22, .61, .36, 1), opacity .5s ease;
}
.cat-card:hover .card-media img, .album-card:hover .card-media img { transform: scale(1.025); }

.cat-info { display: block; text-align: center; padding-top: 18px; }
.cat-title {
  display: inline-block; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px);
  padding-bottom: 2px;
  background: linear-gradient(var(--accent), var(--accent)) bottom center / 0 1px no-repeat;
  transition: background-size .45s ease;
}
.cat-card:hover .cat-title { background-size: 70% 1px; }
.cat-meta { display: block; color: var(--muted); font-size: 14px; letter-spacing: .06em; margin-top: 4px; }
.cat-link {
  display: inline-block; margin-top: 10px;
  font-size: 12.5px; font-weight: 400; letter-spacing: .22em; color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.cat-card:hover .cat-link { color: var(--accent); border-color: var(--accent); }

/* ---------- דף הבית: רגעים נבחרים ---------- */

.selected-section { padding-block: clamp(40px, 6vw, 76px); border-top: 1px solid var(--line); }

.masonry { columns: 3; column-gap: 22px; }
.m-item { break-inside: avoid; margin-bottom: 22px; }
.m-item a { display: block; overflow: hidden; background: #F1EEE7; }
.m-item img { width: 100%; height: auto; transition: transform 1.2s cubic-bezier(.22, .61, .36, 1); }
.m-item a:hover img { transform: scale(1.02); }

/* ---------- צור קשר ---------- */

.contact-section {
  background: var(--bg-tint);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: clamp(50px, 7vw, 90px);
  text-align: center;
}
.contact-line { color: var(--ink-soft); max-width: 520px; margin-inline: auto; }
.contact-phone {
  display: inline-block; font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px); letter-spacing: .06em;
  margin: 18px 0 26px; direction: ltr;
  transition: color .3s;
}
.contact-phone:hover { color: var(--accent); }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.socials { display: flex; justify-content: center; gap: 22px; margin-top: 34px; }
.socials a { color: var(--ink-soft); transition: color .3s, transform .3s; }
.socials a:hover { color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 21px; height: 21px; }

/* ---------- פוטר ---------- */

.site-footer { text-align: center; padding: 38px 20px 46px; }
.foot-mark { font-size: 11px; letter-spacing: .42em; color: var(--muted); direction: ltr; }
.foot-nav { margin-top: 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; font-size: 13.5px; font-weight: 400; letter-spacing: .08em; }
.foot-nav a:hover { color: var(--accent); }
.foot-copy { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* ---------- דפי קטגוריה ואלבום ---------- */

.page-head { text-align: center; padding-block: clamp(34px, 5vw, 58px) clamp(8px, 1.5vw, 14px); }
.crumbs { font-size: 13.5px; font-weight: 400; letter-spacing: .06em; color: var(--muted); margin-bottom: 18px; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin-inline: 9px; color: var(--line); }
.page-head .eyebrow { margin-bottom: 10px; }
.page-sub { color: var(--muted); font-size: 15.5px; margin-top: 6px; }

/* גריד אלבומים — מייסונרי עמודות */
.albums-wrap { padding-block: clamp(26px, 4vw, 46px) clamp(50px, 7vw, 90px); }
.albums-masonry { columns: 3; column-gap: 26px; }
.album-card { display: block; break-inside: avoid; margin-bottom: 34px; }
.album-card .card-title {
  display: block; text-align: center; font-family: var(--serif); font-size: 21.5px; margin-top: 14px;
  transition: color .3s;
}
.album-card:hover .card-title { color: var(--accent); }
.album-card .card-meta { display: block; text-align: center; color: var(--muted); font-size: 13.5px; letter-spacing: .08em; margin-top: 2px; }

/* גלריית אלבום — שורות מיושרות, יחס מקורי תמיד */
.jwrap { padding-block: clamp(22px, 3.5vw, 40px) clamp(46px, 6vw, 80px); }
.jgallery { display: flex; flex-wrap: wrap; gap: 16px; }
.jg-item {
  flex-grow: calc(var(--r) * 100);
  flex-basis: calc(var(--r) * 310px);
  aspect-ratio: var(--r);
  overflow: hidden;
  background: #F1EEE7;
  cursor: zoom-in;
}
.jg-item img {
  width: 100%; height: 100%; object-fit: cover; /* יחס זהה למקור — ללא חיתוך בפועל */
  transition: opacity .5s ease, transform 1.1s cubic-bezier(.22, .61, .36, 1);
}
.jg-item:hover img { transform: scale(1.018); }
.jg-spacer { flex-grow: 100000; flex-basis: 0; height: 0; }

@media (min-width: 1500px) { .jg-item { flex-basis: calc(var(--r) * 350px); } }

/* ניווט בין אלבומים */
.album-next {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid var(--line);
  padding-block: 26px 10px;
  font-weight: 400; font-size: 14.5px; letter-spacing: .05em;
}
.album-next a { color: var(--ink-soft); transition: color .3s; }
.album-next a:hover { color: var(--accent); }
.album-next .next-title { font-family: var(--serif); font-size: 17px; letter-spacing: 0; }

/* ---------- לייטבוקס ---------- */

body.lb-lock { overflow: hidden; }

.lb {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251, 250, 248, .985);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.lb.open { opacity: 1; visibility: visible; }

.lb-stage { position: absolute; inset: 64px 74px 46px; display: flex; align-items: center; justify-content: center; }
.lb-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  box-shadow: 0 22px 70px -18px rgba(50, 40, 18, .28);
  opacity: 0; transition: opacity .3s ease;
}
.lb-img.show { opacity: 1; }

.lb-top {
  position: absolute; top: 0; right: 0; left: 0; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(16px, 2.5vw, 30px);
}
.lb-title { font-family: var(--serif); font-size: 17px; color: var(--ink-soft); }
.lb-counter { font-size: 13.5px; letter-spacing: .08em; color: var(--muted); margin-inline-end: 56px; }

.lb button {
  background: none; border: 0; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: .6; transition: opacity .3s, transform .3s;
  padding: 10px;
}
.lb button:hover { opacity: 1; }
.lb button svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.4; fill: none; }

.lb-close { position: absolute; top: 8px; inset-inline-end: 12px; z-index: 5; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; }
.lb-prev { right: clamp(6px, 1.5vw, 22px); }   /* הקודמת — מימין ב-RTL */
.lb-next { left: clamp(6px, 1.5vw, 22px); }    /* הבאה — משמאל */
.lb-prev svg, .lb-next svg { width: 34px; height: 34px; stroke-width: 1.1; }

.lb-hint {
  position: absolute; bottom: 12px; right: 0; left: 0;
  text-align: center; font-size: 12px; letter-spacing: .14em; color: var(--muted);
}

/* ---------- חזרה למעלה ---------- */

.to-top {
  position: fixed; bottom: 26px; left: 26px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(251, 250, 248, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .35s, visibility .35s, transform .35s, border-color .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; }

/* ---------- רספונסיב ---------- */

@media (max-width: 1100px) {
  .albums-masonry { columns: 2; }
}

@media (max-width: 880px) {
  .intro { grid-template-columns: 1fr; gap: 34px; }
  .intro-media { order: -1; }   /* תמונה קודם במובייל */
  .intro-text { text-align: center; }
  .intro-text .orn { margin-inline: auto; }
  .intro-cta { justify-content: center; }
  .masonry { columns: 2; column-gap: 14px; }
  .m-item { margin-bottom: 14px; }
  .topbar nav a:not(:nth-child(-n+3)) { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .cats { grid-template-columns: 1fr; gap: 40px; }
  .jgallery { gap: 9px; }
  .jg-item { flex-basis: calc(var(--r) * 200px); }
  .lb-stage { inset: 56px 10px 68px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .lb-title { font-size: 15px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 560px) {
  .albums-masonry { columns: 1; }
  .album-card { margin-bottom: 40px; }
  .jg-item { flex-basis: 100%; }  /* תמונה ברוחב מלא, יחס מקורי */
  .jgallery { gap: 12px; }
  .main-nav { gap: 14px; font-size: 13.5px; }
}
