:root {
  --bg-color: #000000;
  --surface-color: #0d0d0d;
  --text-color: #ffffff;
  --muted-text: #e6e6e6;
  --border-color: #222222;
  --line: #1c1c1c;
  --max-width: 1400px;
  --font-base: 18px;
  --radius-frame: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-base);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.75;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Header & Nav במחשב */
header {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  height: 65px;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.logo-header {
  height: 24px;
  width: auto;
  max-width: 320px;
  display: block;
  object-fit: contain;
  transform: none;
}

nav {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

nav ul {
  display: inline-flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: color 0.2s ease, opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.8;
}

.lang-switch {
  font-weight: 600;
  border: 1px solid #666;
  padding: 0.35rem 0.8rem;
  border-radius: 3px;
  color: #ffffff;
  line-height: 1;
}

/* Fullscreen Video Hero */
.hero-fullwidth {
  position: relative;
  width: 100vw;
  height: 75vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

.hero-fullwidth video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  will-change: transform;
}

/* Containers & Titles */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

section {
  border-bottom: 1px solid var(--border-color);
}

h2.section-title-center {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: -0.01em;
}

/* Productions */
.featured-wrap {
  margin-bottom: 6rem;
}

.film-card {
  display: block;
  color: inherit;
}

.media-frame-link {
  display: block;
  text-decoration: none;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background-color: #0d0d0d;
  border-radius: var(--radius-frame);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-frame);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 4;
}

.media-frame.scope-21-9 {
  aspect-ratio: 21 / 9;
}

.media-frame.cinema-16-9,
.media-frame.cropped-clean,
.media-frame.contain-fit-square {
  aspect-ratio: 16 / 9;
}

.film-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  display: block;
  position: relative;
  z-index: 1;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.film-hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 2;
}

.film-hover-video.scope-zoom-fill {
  transform: scale(1.34);
  transform-origin: center center;
}

.media-frame.show-still .film-hover-video {
  opacity: 0;
}

@keyframes continuousZoom {
  0% { transform: scale(1); filter: brightness(0.9); }
  100% { transform: scale(1.06); filter: brightness(1.04); }
}

.media-frame.show-still .film-img {
  animation: continuousZoom 3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.film-card:hover .media-frame {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.22);
}

.film-info {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0 0.3rem 1.2rem 0.3rem;
  border-bottom: 1px solid var(--line);
}

.film-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.film-title-toggle {
  background: none;
  border: none;
  color: #ffffff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-align: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 3px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.film-title-toggle:hover {
  border-bottom-color: #ffffff;
  opacity: 0.85;
}

.film-title-toggle h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toggle-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.film-card.is-open .toggle-arrow,
.portrait-btn.active .toggle-arrow {
  transform: rotate(180deg);
}

.film-action-link {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid #333333;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
}

.film-action-link:hover {
  color: #000000;
  border-color: #ffffff;
  background-color: #ffffff;
}

.film-details-reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.35s ease, 
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.film-card.is-open .film-details-reveal {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 901px) {
  .film-card:hover .film-details-reveal {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  }
}

.film-meta-box {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 500;
  color: #dcdcdc;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0.45rem 0.85rem;
  line-height: 1.5;
}

.film-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02));
  margin: 0.2rem 0;
}

body[dir="rtl"] .film-divider {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02));
}

.film-synopsis-text {
  font-size: 0.95rem;
  color: #b0b0b0;
  line-height: 1.7;
}

.staggered-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5.5rem 6rem;
  align-items: start;
}

.col-left, .col-right {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.col-right {
  margin-top: 8rem;
}

/* About Us */
.about-company-intro {
  max-width: 980px;
  margin: 0 auto 3.5rem auto;
  text-align: left;
}

body[dir="rtl"] .about-company-intro {
  text-align: right;
  direction: rtl;
}

.about-company-intro p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #e0e0e0;
}

.spotlight-wrapper {
  max-width: 1050px;
  margin: 0 auto;
}

.spotlight-portraits {
  display: flex;
  justify-content: center;
  gap: 4.5rem;
  margin-bottom: 2rem;
}

.portrait-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 290px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 0.85;
}

.portrait-btn:hover,
.portrait-btn.active {
  opacity: 1;
  transform: translateY(-5px);
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-frame);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
  background-color: #0d0d0d;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
  display: block;
}

.portrait-label-wrapper {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 3px;
  transition: border-color 0.2s ease;
}

.portrait-btn:hover .portrait-label-wrapper,
.portrait-btn.active .portrait-label-wrapper {
  border-bottom-color: #ffffff;
}

.portrait-label {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.spotlight-content-panel {
  max-width: 980px;
  margin: 0 auto;
}

.spotlight-pane {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-frame);
  padding: 2.2rem 2.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  text-align: left;
}

body[dir="rtl"] .spotlight-pane {
  text-align: right;
  direction: rtl;
}

.spotlight-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.spotlight-bio {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}

.spotlight-works {
  font-size: 0.95rem;
  color: #b0b0b0;
  line-height: 1.8;
}

.spotlight-works strong {
  color: #ffffff;
}

/* Contact Us */
#contact.container {
  padding-top: 5rem;
  padding-bottom: 0 !important;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  justify-content: center;
}

.contact-block {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-block h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.contact-block p {
  color: #d8d8d8;
  font-size: 1.05rem;
  line-height: 1.75;
}

.contact-block a {
  color: #ffffff;
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.contact-img-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-frame);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  background-color: #0d0d0d;
}

.contact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* לוגו תחתון במחשב - באורך של כיתוב הפוטר במדויק */
.contact-logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.logo-bottom {
  height: auto;
  max-height: 38px;
  width: 100%;
  max-width: 480px;
  display: block;
  object-fit: contain;
}

footer {
  text-align: center;
  padding: 0.8rem 1.5rem 1.5rem 1.5rem;
  color: #cccccc;
  font-size: 0.92rem;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Accessibility */
.accessibility-trigger {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #0056f6;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 0;
}

body[dir="rtl"] .accessibility-trigger {
  right: auto;
  left: 25px;
}

.accessibility-trigger svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.accessibility-panel {
  position: fixed;
  bottom: 85px;
  right: 25px;
  width: 290px;
  background-color: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 9999;
}

body[dir="rtl"] .accessibility-panel {
  right: auto;
  left: 25px;
}

.accessibility-panel.active {
  display: flex;
}

.acc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 0.6rem;
  margin-bottom: 0.4rem;
}

.acc-header h3 {
  font-size: 1.05rem;
  color: #fff;
}

.acc-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.3rem;
  cursor: pointer;
}

.acc-btn {
  background-color: #262626;
  color: #ffffff;
  border: 1px solid #404040;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.2s ease;
}

.acc-btn:hover {
  background-color: #333333;
  border-color: #666666;
}

body.acc-high-contrast {
  --bg-color: #000000 !important;
  --text-color: #ffff00 !important;
  --muted-text: #ffffff !important;
}

body.acc-high-contrast a,
body.acc-high-contrast .film-action-link {
  background-color: #ffff00 !important;
  color: #000000 !important;
}

body.acc-underline-links a {
  text-decoration: underline !important;
}

body.acc-readable-font {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* =======================================================
   Mobile Layout
   ======================================================= */
@media (max-width: 900px) {
  :root {
    --radius-frame: 14px;
    --font-base: 15px;
  }

  header {
    height: auto;
    padding: 0.4rem 0 0.35rem 0;
  }

  .nav-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.8rem;
    width: 100%;
  }

  .logo {
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
  }

  .logo-header {
    width: 100%;
    max-width: 320px;
    height: auto;
    max-height: 22px;
    object-fit: contain;
    transform: none;
  }

  nav {
    height: auto;
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
  }

  nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  nav a {
    font-size: 0.78rem;
    white-space: nowrap;
    padding: 0.1rem 0;
  }

  .lang-switch {
    padding: 0.1rem 0.4rem;
    font-size: 0.72rem;
  }

  /* סרטון פתיחה הידיים */
  .hero-fullwidth {
    width: 100%;
    height: auto;
    min-height: unset;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #000;
  }

  .hero-fullwidth video {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* כרטיסיות סרטים וריווח */
  .container {
    padding: 2.2rem 1rem;
  }

  h2.section-title-center {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
  }

  .featured-wrap {
    margin-bottom: 2.5rem;
  }

  .media-frame.scope-21-9,
  .media-frame.cinema-16-9,
  .media-frame.contain-fit-square,
  .media-frame.cropped-clean {
    aspect-ratio: 16 / 9;
  }

  .media-frame.cropped-clean .film-hover-video {
    transform: scale(1.08);
    transform-origin: top center;
  }

  .film-info {
    margin-top: 0.75rem;
    padding: 0 0.1rem 0.5rem 0.1rem;
  }

  .film-title-toggle h3 {
    font-size: 1.05rem;
  }

  .film-title-toggle.tight-title h3 {
    font-size: 0.95rem;
    letter-spacing: 0;
  }

  .toggle-arrow {
    font-size: 0.75rem;
  }

  .film-action-link {
    font-size: 0.74rem;
    padding: 0.28rem 0.55rem;
  }

  .film-meta-box {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }

  .film-synopsis-text {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .staggered-columns {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .col-left, .col-right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin: 0;
    width: 100%;
  }

  /* אודות במובייל */
  .about-company-intro {
    text-align: right;
    direction: rtl;
    margin-bottom: 2rem;
  }

  .about-company-intro p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .spotlight-portraits {
    gap: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .portrait-btn {
    width: 135px;
    opacity: 1;
  }

  .portrait-label-wrapper {
    margin-top: 0.65rem;
    gap: 0.35rem;
  }

  .portrait-label {
    font-size: 0.88rem;
  }

  .spotlight-pane {
    padding: 1.2rem;
    text-align: right;
    direction: rtl;
  }

  .spotlight-bio {
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 1rem;
  }

  .spotlight-works {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  /* יצירת קשר ולוגו תחתון במובייל */
  .contact-split {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .logo-bottom {
    height: auto;
    max-height: 24px;
    max-width: 250px;
    margin-bottom: 0;
  }
}