/* ============================================
   YBA Studio – style.css  (v2)
   אדום לבנה חזק + אספרסו + נייר שמנת.
   פונטים: Anton (אנגלית), Rubik עבה (עברית).
   ============================================ */

:root {
  --red:      #c0261c;   /* אדום לבנה – הפס בשער ובסוף */
  --red-dark: #96190f;
  --ink:      #1d120c;   /* אספרסו – טקסט ופסים כהים */
  --ink-2:    #2a1a12;
  --paper:    #f4ece0;   /* נייר שמנת – רקע ראשי */
  --sand:     #e9dcc8;   /* חול – סקשן מתחלף */
  --muted:    #6b4a3a;   /* חום לטקסט משני על בהיר */
  --cream:    #fbf4ea;   /* טקסט על אדום/כהה */

  --font-en: 'Anton', 'Impact', sans-serif;
  --font-he: 'Rubik', 'Arial', sans-serif;

  --max: 1280px;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-he);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }

/* ---------- אייקון פליי ---------- */
.play-icon {
  display: inline-block; width: 0; height: 0;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  border-right: 11px solid currentColor;
}

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-he); font-weight: 700; font-size: 16px;
  border: 2px solid transparent;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn--dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--dark:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--line { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--line:hover { background: var(--cream); color: var(--red); }
.btn--lg { padding: 18px 40px; font-size: 18px; }

/* ---------- ניווט ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  color: var(--cream);
  transition: background .35s, padding .35s;
}
.nav.is-scrolled { padding: 12px var(--pad); background: var(--ink); }
.nav__logo { font-family: var(--font-en); font-size: 34px; letter-spacing: .04em; line-height: 1; }
.nav__links { display: flex; gap: 32px; align-items: center; font-weight: 500; font-size: 16px; }
.nav__links a { opacity: .85; transition: opacity .25s; }
.nav__links a:hover { opacity: 1; }
.nav__cta { opacity: 1 !important; border: 2px solid var(--cream); padding: 7px 18px; font-weight: 700; }
.nav__cta:hover { background: var(--cream); color: var(--red); }
.nav.is-scrolled .nav__cta:hover { color: var(--ink); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 24px; position: relative; }
.nav__burger span { position: absolute; left: 0; width: 100%; height: 3px; background: var(--cream); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 4px; }
.nav__burger span:last-child { top: 16px; }
.nav.is-open .nav__burger span:first-child { top: 10px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 10px; transform: rotate(-45deg); }

/* ---------- שער: פס אדום ---------- */
.hero { background: var(--red); color: var(--cream); padding: 160px var(--pad) 100px; }
.hero__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 90px); align-items: center;
}
.hero__eyebrow {
  font-family: var(--font-en); font-size: 22px; letter-spacing: .12em; text-transform: uppercase;
  direction: ltr; text-align: left; margin-bottom: 10px; color: var(--ink);
}
.hero__title {
  font-family: var(--font-en); font-weight: 400;
  font-size: clamp(96px, 15vw, 230px); line-height: .86; letter-spacing: .005em;
  direction: ltr; text-align: left; margin-bottom: 34px;
}
.hero__title span { display: block; }
.hero__sub { font-size: clamp(19px, 1.7vw, 23px); font-weight: 500; line-height: 1.55; max-width: 540px; margin-bottom: 38px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.portrait {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--red-dark);
  border: 10px solid var(--ink);
  box-shadow: 18px 18px 0 var(--ink);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.portrait__placeholder {
  display: none; position: absolute; inset: 0; flex-direction: column; gap: 6px;
  align-items: center; justify-content: center; text-align: center;
  font-weight: 800; font-size: 24px; color: var(--cream);
}
.portrait__placeholder small { font-weight: 400; font-size: 13px; opacity: .8; }
.portrait--empty img { display: none; }
.portrait--empty .portrait__placeholder { display: flex; }
.hero__tag {
  margin-top: 34px; font-family: var(--font-en); font-size: 18px; letter-spacing: .15em; text-transform: uppercase;
  direction: ltr; text-align: left; display: flex; align-items: center; gap: 10px;
}
.hero__tag i { width: 11px; height: 11px; border-radius: 50%; background: var(--cream); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- שואוריל ---------- */
.reel {
  position: relative; height: 92vh; min-height: 480px; overflow: hidden;
  background: var(--ink);
}
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(29, 18, 12, .75), rgba(29, 18, 12, 0) 45%); }
.reel__content {
  position: absolute; inset: auto 0 0 0; padding: 0 var(--pad) 48px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  max-width: var(--max); margin: 0 auto; color: var(--cream);
}
.reel__label { font-family: var(--font-en); font-size: clamp(40px, 6vw, 84px); line-height: 1; direction: ltr; text-transform: uppercase; }
.reel__play {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--red); color: var(--cream); border: 0; cursor: pointer;
  padding: 16px 28px; font-weight: 700; font-size: 17px;
  transition: background .3s, transform .3s var(--ease);
}
.reel__play:hover { background: var(--cream); color: var(--red); transform: translateY(-3px); }

/* ---------- סקשנים ---------- */
.section { padding: clamp(80px, 10vw, 130px) var(--pad); }
.section > * { max-width: var(--max); margin-inline: auto; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--sand { background: var(--sand); }
.section__head { display: flex; gap: clamp(20px, 3vw, 40px); align-items: flex-start; margin-bottom: 56px; }
.section__num {
  font-family: var(--font-en); font-size: clamp(64px, 8vw, 120px); line-height: .85; color: var(--red);
}
.section__title { font-weight: 900; font-size: clamp(42px, 5.5vw, 76px); line-height: 1.05; margin-bottom: 14px; letter-spacing: -.01em; }
.section__desc { font-size: 18px; color: var(--muted); max-width: 600px; font-weight: 500; }
.section--dark .section__desc { color: #d9c7b4; }

/* ---------- רשתות ---------- */
.grid { display: grid; gap: 30px; }
.grid--wide { grid-template-columns: repeat(2, 1fr); }
.grid--tall { grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: center; gap: 30px; }
/* תדמית: שני רחבים אחד מעל השני + שני אנכיים לצידם */
.grid--mixed { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; }
.grid--mixed > :nth-child(1) { grid-column: 1; grid-row: 1; }
.grid--mixed > :nth-child(2) { grid-column: 1; grid-row: 2; }
.grid--mixed > :nth-child(3) { grid-column: 2; grid-row: 1 / 3; }
.grid--mixed > :nth-child(4) { grid-column: 3; grid-row: 1 / 3; }
.grid--mixed .card--tall { display: flex; flex-direction: column; }
.grid--mixed .card--tall .card__media { flex: 1; aspect-ratio: auto; min-height: 0; }
.grid--mixed .card--tall .card__media video { position: absolute; inset: 0; }
.grid--feature { grid-template-columns: repeat(2, 1fr); }
.grid--feature .card--feature { grid-column: 1 / -1; }

/* ---------- כרטיסים ---------- */
.card { cursor: pointer; }
.card__media { position: relative; overflow: hidden; background: var(--ink-2); }
.card--wide .card__media    { aspect-ratio: 16 / 9; }
.card--tall .card__media    { aspect-ratio: 9 / 16; }
.card--feature .card__media { aspect-ratio: 21 / 9; }
.card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media video { transform: scale(1.04); }
.card__hint {
  position: absolute; bottom: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--red); color: var(--cream);
  padding: 9px 16px; font-weight: 700; font-size: 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s, transform .3s var(--ease);
}
.card:hover .card__hint { opacity: 1; transform: none; }
.card__meta { padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__meta h3 { font-weight: 800; font-size: 22px; line-height: 1.2; }
.card__meta p { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.section--dark .card__meta p { color: #c9b5a1; }
.card--tall .card__meta { flex-direction: column; gap: 0; }
.card--tall .card__meta h3 { font-size: 19px; }

/* ---------- עליי ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.about__text .section__num { display: block; margin-bottom: 18px; }
.about__text .section__title { margin-bottom: 28px; }
.about__text p { font-size: 19px; font-weight: 400; margin-bottom: 20px; max-width: 600px; }
.about__services { border-top: 3px solid var(--ink); margin-top: 8px; counter-reset: service; }
.about__services li {
  padding: 18px 0; border-bottom: 1px solid rgba(29, 18, 12, .25);
  font-weight: 800; font-size: 26px;
  display: flex; justify-content: space-between; align-items: center;
  counter-increment: service;
}
.about__services li::after { content: counter(service, decimal-leading-zero); font-family: var(--font-en); font-weight: 400; font-size: 22px; color: var(--red); }
.clients { margin-top: 90px; padding-top: 40px; border-top: 3px solid var(--ink); }
.clients__label { font-weight: 700; font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.clients__list { display: flex; flex-wrap: wrap; gap: 16px 54px; align-items: center; }
.clients__list li { font-weight: 900; font-size: clamp(22px, 2.4vw, 32px); }
.clients__list img { height: 48px; width: auto; }

/* ---------- צור קשר: פס אדום ---------- */
.contact { background: var(--red); color: var(--cream); text-align: center; padding: clamp(90px, 12vw, 150px) var(--pad); }
.contact__title { font-weight: 900; font-size: clamp(46px, 7vw, 100px); line-height: 1.05; margin-bottom: 24px; letter-spacing: -.01em; }
.contact__sub { font-size: 20px; font-weight: 500; max-width: 540px; margin: 0 auto 40px; }
.ig-btn {
  display: inline-flex; align-items: center; gap: 16px; direction: ltr;
  background: var(--ink); color: var(--cream);
  padding: 22px 46px; margin-bottom: 30px;
  font-family: var(--font-en); font-size: clamp(24px, 3vw, 34px); letter-spacing: .04em;
  box-shadow: 10px 10px 0 var(--red-dark);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
}
.ig-btn svg { width: 1.2em; height: 1.2em; }
.ig-btn:hover { background: var(--cream); color: var(--red); transform: translate(-4px, -4px); box-shadow: 14px 14px 0 var(--ink); }
.contact__mail { display: block; width: fit-content; margin: 0 auto; font-weight: 500; font-size: 18px; border-bottom: 1px solid currentColor; }
.contact__mail:hover { color: var(--ink); }

/* ---------- פוטר ---------- */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 26px var(--pad); background: var(--ink); color: var(--cream);
  font-family: var(--font-en); font-size: 16px; letter-spacing: .08em; direction: ltr;
}

/* ---------- חלון וידאו ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 12, 8, .95);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__frame { width: min(92vw, 1180px); aspect-ratio: 16 / 9; background: #000; transform: scale(.96); transition: transform .45s var(--ease); }
.lightbox__frame.is-vertical { width: auto; height: 88vh; aspect-ratio: 9 / 16; }
.lightbox.is-open .lightbox__frame { transform: scale(1); }
.lightbox__frame iframe, .lightbox__frame video { width: 100%; height: 100%; border: 0; }
.lightbox__close {
  position: absolute; top: 18px; left: 26px; background: none; border: 0; cursor: pointer;
  color: var(--cream); font-size: 50px; line-height: 1; transition: color .3s, transform .3s;
}
.lightbox__close:hover { color: var(--red); transform: rotate(90deg); }

/* ---------- אנימציית כניסה ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- רספונסיב ---------- */
@media (max-width: 1024px) {
  .grid--mixed { grid-template-columns: 1fr 1fr; }
  .grid--mixed > :nth-child(n) { grid-column: auto; grid-row: auto; }
  .grid--mixed .card--wide { grid-column: 1 / -1; }
  .grid--mixed .card--tall .card__media { flex: none; aspect-ratio: 9 / 16; }
}
@media (max-width: 820px) {
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--red); font-size: 30px; font-weight: 800;
    transform: translateY(-100%); transition: transform .5s var(--ease);
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__burger, .nav__logo { display: block; z-index: 2; }
  .hero { padding-top: 100px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__portrait { order: -1; max-width: 300px; margin: 0 auto; }
  .portrait { box-shadow: 10px 10px 0 var(--ink); border-width: 7px; }
  .hero__eyebrow, .hero__title { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__tag { justify-content: center; }
  .reel { height: 75vh; }
  .reel__content { flex-direction: column; align-items: flex-start; }
  .section__head { flex-direction: column; gap: 6px; }
  .grid--wide, .grid--feature { grid-template-columns: 1fr; }
  .grid--tall { grid-template-columns: 1fr 1fr; gap: 16px; }
  .grid--mixed { gap: 16px; }
  .card--feature .card__media { aspect-ratio: 16 / 9; }
  .card__hint { opacity: 1; transform: none; }
  .about { grid-template-columns: 1fr; }
  .footer { justify-content: center; }
}

/* ---------- תיקון גלישה רוחבית ---------- */
.grid > * { min-width: 0; }
.card--tall .card__meta p { white-space: normal; }
@media (max-width: 820px) {
  .reel__label { font-size: 40px; }
  .hero__title { font-size: clamp(72px, 24vw, 120px); }
}
