/* =========================================================
   יובל אונהאוס — אתר תיק עבודות
   Light & minimal · RTL · Hebrew
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f5f1;
  --fg: #16130f;
  --muted: #6f6a63;
  --line: #e7e3dc;
  --accent: #b9542d;
  --accent-soft: #f3e7df;
  --max: 1180px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(20, 16, 12, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Assistant", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .logo, .btn, .nav-links a {
  font-family: "Heebo", "Assistant", system-ui, sans-serif;
}

h1, h2, h3 { line-height: 1.2; font-weight: 800; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; color: #2b2621; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #8f3d1e; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em;
  color: var(--fg); display: flex; align-items: baseline; gap: .5ch;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: .98rem; font-weight: 600;
  color: #3a352f; transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: var(--bg-soft); color: var(--fg); }
.nav-links a.active { background: var(--fg); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--fg); margin: 5px 0; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6ch;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1.5px solid var(--fg); cursor: pointer; transition: all .2s var(--ease);
}
.btn-primary { background: var(--fg); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(70px, 12vw, 140px) 0 clamp(50px, 8vw, 90px); }
.hero .eyebrow {
  color: var(--accent); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-size: .82rem; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.3rem; max-width: 58ch; color: #423c35; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Sections ---------- */
section.block { padding: clamp(56px, 9vw, 100px) 0; }
.block.soft { background: var(--bg-soft); }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head .eyebrow {
  color: var(--accent); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 12px;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .num { color: var(--accent); font-weight: 800; font-size: 1.1rem; }

/* ---------- Shows (Instagram embeds) ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.ig-grid .instagram-media { margin: 0 auto !important; min-width: unset !important; }
.placeholder-embed {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 44px 24px; text-align: center; color: var(--muted); background: var(--bg-soft);
}
.placeholder-embed strong { color: var(--fg); }

/* ---------- Video ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 12px; font-weight: 600; }

/* ---------- Photo gallery ---------- */
.masonry { columns: 3; column-gap: 18px; }
.masonry figure {
  margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); cursor: zoom-in; position: relative;
}
.masonry img { width: 100%; height: auto; display: block; transition: transform .4s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }
.ph-tile {
  aspect-ratio: 4 / 5; display: grid; place-items: center; color: var(--muted);
  background: linear-gradient(135deg, #f3efe9, #e9e3da); font-weight: 600;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 12, 9, .92); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 22px; left: 26px; color: #fff; font-size: 2rem;
  background: none; border: 0; cursor: pointer; line-height: 1;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--fg); transition: border .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list .ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent);
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list a, .contact-list span { font-weight: 600; color: var(--fg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.social { display: flex; gap: 12px; }
.social a {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--fg); transition: all .2s var(--ease);
}
.social a:hover { background: var(--fg); color: #fff; transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav-links {
    position: absolute; top: 72px; right: 0; left: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .grid-3, .ig-grid, .masonry { grid-template-columns: 1fr; columns: 1; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}
