/* Site font */
@font-face {
  font-family: 'Noto Sans Hebrew';
  src: url('Fonts/NotoSansHebrew.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* =========================================================
   Design tokens
========================================================= */
:root {
  --black: #0e0f11;
  --white: #F6F5F1;
  --gray-500: #6f727a;
  --gray-400: #a4a6ac;
  --gray-200: #e4e5e9;
  --gray-100: #ececec;
  --ph-bg: #e6e6e6;
  --ph-border: #d3d3d3;
  --ph-text: #9a9da4;

  /* brand palette */
  --accent-warm: #CE722A;
  --accent-lime: #CCD864;
  --accent-cyan: #6FC5CF;
  --bg: #ECE9E1;                 /* page background — like white, a touch darker (warm off-white) */
  --bg-2: #CDC6B3;              /* deeper off-white for the footer */
  --accent-grad: linear-gradient(90deg, var(--accent-warm), var(--accent-lime), var(--accent-cyan));

  --header-h: 88px;
  --section-y: clamp(80px, 10vw, 140px);
  --gutter: clamp(24px, 9vw, 135px);   /* large side margin — global */
  --text-gutter: var(--gutter);        /* text sections match the global margin */
  --gutter-s: 50px;                    /* small margin — hero title & header nav */

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;
}

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

html { scroll-behavior: smooth; background: var(--bg); }  /* --bg = #ECE9E1, keeps iOS Safari bars light */

body {
  font-family: 'Noto Sans Hebrew', Arial, sans-serif;
  color: var(--black);
  background: var(--bg);
  direction: rtl;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* sticky footer: fill the viewport, let main grow, footer stays at the bottom */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
body.menu-open { overflow: hidden; }

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

/* Full-width container with narrow 40px margins */
.container {
  width: 100%;
  padding: 0 var(--gutter);
}

/* Text block with generous margins — right-aligned */
.narrow-text {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 calc(var(--text-gutter) - var(--gutter));
  text-align: right;
}

/* Same generous margins, without centered text (contact page) */
.narrow-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 calc(var(--text-gutter) - var(--gutter));
}
@media (max-width: 1000px) {
  .narrow-wrap { padding: 0; }
}

::selection { background: var(--black); color: var(--white); }

/* =========================================================
   Placeholders
========================================================= */
.ph {
  position: relative;
  background: var(--ph-bg);
  border: 1px solid var(--ph-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-text);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  text-align: center;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top left, transparent calc(50% - .5px), var(--ph-border) 50%, transparent calc(50% + .5px));
  opacity: .55;
  pointer-events: none;
}
.ph span {
  position: relative;
  background: var(--ph-bg);
  padding: 10px 14px;
}

/* =========================================================
   Header — logo right, burger left
========================================================= */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  background: transparent;
  border: none;
  transition: transform .5s var(--ease);
  /* NOTE: no base transform — a transform here would trap the fixed mobile menu inside the header */
}
.site-header.hidden {
  transform: translateY(-110%);
}
/* header nav keeps the smaller side margin (not the global large one) */
.site-header .container { padding-inline: var(--gutter-s); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  height: clamp(30px, 3.2vw, 42px);
  flex-shrink: 0;
  position: relative;
  top: 15px;                /* align with the burger (same nudge) */
  transition: opacity var(--dur) var(--ease);
}
.logo:hover { opacity: .7; }
.logo img { height: 100%; width: auto; display: block; }
/* transparent SVG: light mark on dark hero/footer, dark mark on light inner pages */
.logo .logo-dark { display: none; }
body.page .logo .logo-light { display: none; }
body.page .logo .logo-dark { display: block; }

/* Inner pages: header sits over light content -> dark nav & burger */
body.page .main-nav a { color: var(--black); }
body.page .main-nav a::after { background: var(--black); }
body.page .burger span { background: var(--white); }

/* Nav group: burger on the far left, links reveal beside it on hover */
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
  top: 15px;                /* nudge the whole nav (links + burger) down, in line with the logo */
}

/* Burger — 2 lines, morphs to X on hover/open */
.burger {
  background: var(--accent-warm);
  border: none;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.burger:hover { transform: scale(1.06); box-shadow: 0 6px 16px rgba(14, 15, 17, .18); }
.burger span {
  position: absolute;
  left: 50%;
  width: 23px;
  height: 2px;
  background: var(--white);
  transform: translateX(-50%);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:nth-child(1) { top: 26px; }
.burger span:nth-child(2) { top: 34px; }
.nav-wrap:hover .burger span:nth-child(1),
.nav-wrap.open .burger span:nth-child(1) { top: 30px; transform: translateX(-50%) rotate(45deg); }
.nav-wrap:hover .burger span:nth-child(2),
.nav-wrap.open .burger span:nth-child(2) { top: 30px; transform: translateX(-50%) rotate(-45deg); }

/* Inline links — pushed in from the left, revealed on hover */
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
}
.main-nav a {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--white);
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  opacity: 0;
  transform: translateX(-28px);
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.nav-wrap:hover .main-nav a,
.nav-wrap.open .main-nav a {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
/* stagger — the link closest to the burger appears first */
.nav-wrap:hover .main-nav a:nth-child(3),
.nav-wrap.open .main-nav a:nth-child(3) { transition-delay: .05s; }
.nav-wrap:hover .main-nav a:nth-child(2),
.nav-wrap.open .main-nav a:nth-child(2) { transition-delay: .13s; }
.nav-wrap:hover .main-nav a:nth-child(1),
.nav-wrap.open .main-nav a:nth-child(1) { transition-delay: .21s; }

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 1.5px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

/* =========================================================
   Hero — full viewport height, single-line title on the right
========================================================= */
.hero {
  height: 100svh;
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.hero .video-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  font-size: 12px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, .3), transparent);
  pointer-events: none;
}
/* top scrim — keeps the logo & nav legible over any hero media */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 200px;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .38), transparent);
  pointer-events: none;
}
.hero-title {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gutter-s) clamp(64px, calc(7vh + 20px), 100px);
  text-align: right;
}
.hero-title h1 {
  font-family: 'Noto Sans Hebrew', 'Heebo', Arial, sans-serif;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 1.1s var(--ease) .2s forwards;
}
.hero-title h1 .thin {
  font-weight: 300;
  font-size: 1em;
  color: inherit;
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero image slider (about page) */
.hero-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  font-size: 12px;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-slider .slide.active { opacity: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-dots {
  position: absolute;
  bottom: 32px;
  left: var(--gutter-s);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(14, 15, 17, .25);
  cursor: pointer;
  padding: 0;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.slider-dots button:hover { background: rgba(14, 15, 17, .5); }
.slider-dots button.active {
  background: var(--black);
  transform: scale(1.25);
}

/* Scroll hint */
/* Sound toggle on the hero video (bottom-left). Video autoplays muted; click for sound. */
.sound-btn {
  position: absolute;
  bottom: clamp(64px, calc(7vh + 20px), 100px);
  left: var(--gutter-s);
  right: auto;
  z-index: 3;
  width: 60px;               /* same box as the burger → centers line up vertically */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  color: var(--white);
  opacity: .9;
  cursor: pointer;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .55));
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.sound-btn:hover { opacity: 1; transform: scale(1.08); }
.sound-btn svg { width: 28px; height: 28px; display: block; }
.sound-btn .icon-on { display: none; }
.sound-btn.is-on .icon-on { display: block; }
.sound-btn.is-on .icon-muted { display: none; }
/* =========================================================
   Sections & typography
========================================================= */
.page main { padding-top: var(--header-h); }

section { padding: var(--section-y) 0; }
section + section { padding-top: 0; }
.hero + section { padding-top: var(--section-y); }

.section-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-kicker {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 14px;
}

/* About teaser — centered text block */
.about-teaser .narrow-text .section-title { margin-bottom: 28px; }
.about-teaser p {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.8;
  font-weight: 300;
  color: #2a2b2e;
}

/* Text link with animated arrow */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .02em;
  position: relative;
  padding-bottom: 6px;
}
.more-link::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 1px;
  background: var(--black);
  transform: scaleX(1);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
.more-link:hover::after { transform: scaleX(.35); }
.more-link .arrow {
  font-size: 18px;
  line-height: 1;
}
/* arrow stays put on hover — only the underline changes */

/* =========================================================
   Projects grid
   .featured — first card spans 2x2 (top-right in RTL)
========================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);   /* equal row & column gaps */
}
.projects-grid.featured {
  grid-template-columns: repeat(4, 1fr);
}
.projects-grid.featured .project-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.project-card .ph {
  aspect-ratio: 4 / 3;
  width: 100%;
}
.projects-grid.featured .project-card:first-child .ph {
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
}

/* Hover — dark overlay fading in */
.project-card .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(204, 216, 100, .25); /* CCD864 lime */
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
}
.project-card:hover .ph::after { opacity: 1; }

/* Caption — always on the image; one line, name bold, city thin */
.card-caption {
  position: absolute;
  right: 0; bottom: 0; left: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 6px;
  letter-spacing: -.01em;
  padding: 48px 18px 14px;
  font-size: 18px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(to top, rgba(14, 15, 17, .55), transparent);
}
.card-caption strong { font-weight: 700; font-size: 18px; }
.card-caption .city {
  font-weight: 400;          /* regular weight */
  font-size: 18px;           /* same size as the name */
  color: var(--white);
  background: none;          /* drop the placeholder box that .ph span added */
  padding: 0;
}

/* Centered link row */
.center { text-align: center; }

/* =========================================================
   Projects page filters
========================================================= */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
}
.filter-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--gray-400);
  cursor: pointer;
  position: relative;
  padding: 4px 2px 8px;
  transition: color var(--dur) var(--ease);
}
.filter-btn::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}
.filter-btn:hover { color: var(--black); }
.filter-btn:hover::after { transform: scaleX(1); }
.filter-btn.active {
  color: var(--black);
  font-weight: 500;
}
.filter-btn.active::after { transform: scaleX(1); }

.project-card.hidden { display: none; }

/* =========================================================
   Clients
========================================================= */
.clients { background: transparent; padding: clamp(40px, 6vw, 72px) 0 var(--section-y) !important; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.clients-grid .ph {
  aspect-ratio: 3 / 2;
  background: var(--white);
  border-color: var(--gray-200);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.clients-grid .ph span { background: var(--white); }
.clients-grid .ph:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(14, 15, 17, .07);
}

/* =========================================================
   Footer
========================================================= */
.site-footer {
  background: var(--bg-2);
  color: var(--black);
  padding: 32px 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-logo { height: clamp(30px, 3.2vw, 40px); flex-shrink: 0; }
.footer-logo img { height: 100%; width: auto; display: block; filter: drop-shadow(0 1px 0 rgba(14, 15, 17, .2)); }
.footer-copy {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
}
.footer-credit { margin-top: 6px; }
.footer-credit a {
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-credit a:hover { color: var(--white); }
.footer-contact {
  text-align: left;
  flex-shrink: 0;
}
.footer-contact li {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
  color: #d5d6da;
}
.footer-contact a { transition: color var(--dur) var(--ease); }
.footer-contact a:hover { color: var(--white); }

@media (max-width: 720px) {
  .footer-row { flex-direction: column; text-align: center; }
  .footer-contact { text-align: center; }
}

/* =========================================================
   Inner pages
========================================================= */
.page-hero {
  padding: clamp(56px, 8vw, 110px) 0 clamp(32px, 4vw, 56px);
}
.page-hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.about-content .narrow-text { margin-bottom: clamp(48px, 6vw, 80px); }
.about-content p {
  font-size: clamp(14px, 1.5vw, 18px);   /* about text, 2px smaller */
  line-height: 1.85;
  margin: 0;
  color: #2a2b2e;
}

/* 1) centered intro */
.about-intro { max-width: 860px; margin: 0 auto clamp(48px, 8vw, 96px); text-align: center; }
.about-intro .section-title { margin-bottom: 22px; }
.about-intro p { font-size: clamp(16px, 1.6vw, 20px); }   /* like homepage "קצת עלינו" */

/* 2/3/5) alternating text + image rows */
.about-row {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  margin: clamp(48px, 7vw, 96px) 0;
}
.about-row.flip { flex-direction: row-reverse; }   /* image on the right, text on the left */
.about-row-text { flex: 1 1 38%; }   /* narrower text */
.about-row-text p { text-align: right; }
.about-row-img { flex: 1 1 62%; }   /* larger image */
.about-row-img img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* 4) full-width image */
.about-full-img { margin: clamp(48px, 7vw, 96px) 0; }
.about-full-img img { width: 100%; height: auto; display: block; border-radius: 4px; }

@media (max-width: 720px) {
  .about-row, .about-row.flip { flex-direction: column; gap: 20px; }
  .about-row-text p, .about-row.flip .about-row-text p { text-align: right; }
  .about-full-img { display: none; }   /* hide image 5 on mobile only */
}
.about-image-ph {
  aspect-ratio: 21 / 9;
  width: 100%;
  margin: 0 0 clamp(40px, 5vw, 64px);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 24px);
  margin-top: clamp(32px, 4vw, 48px);
}
.team-card .ph { aspect-ratio: 3 / 4; }
.team-card .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 15, 17, .3);
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
}
.team-card:hover .ph::after { opacity: 1; }
.team-card h3 { margin-top: 14px; font-size: 17px; font-weight: 700; }
.team-card p { font-size: 15px; font-weight: 300; color: var(--gray-500); }

/* Project detail */
.project-meta {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
  font-size: 16px;
}
.project-meta strong {
  display: block;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.project-desc-wrap { margin-bottom: clamp(40px, 5vw, 64px); }
.project-desc {
  font-size: 19px;
  line-height: 1.85;
  color: #2a2b2e;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.project-gallery .ph { aspect-ratio: 4 / 3; }
.project-gallery .wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

/* Contact */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 120px) 0 clamp(80px, 10vw, 160px);
}
.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 140px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 calc(var(--text-gutter) - var(--gutter));
}

/* Right column — title, lead, details, social */
.contact-intro h1 {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.contact-lead {
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.contact-details li {
  font-size: 17px;
  line-height: 2.1;
  font-weight: 500;
}
.contact-details .mail-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-details a { transition: color var(--dur) var(--ease); }
.contact-details a:hover { color: var(--accent-warm); }
/* Left column — minimal underline form */
.contact-form-min {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 0;
  margin-top: 0;
}
.contact-form-min .field:first-child label {
  margin-top: 0;
  padding-top: 0;
}
.contact-form-min .field label {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}
.contact-form-min input,
.contact-form-min textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--gray-400);
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  padding: 4px 0 10px;
  transition: border-color var(--dur) var(--ease);
}
.contact-form-min input:focus,
.contact-form-min textarea:focus {
  outline: none;
  border-color: var(--black);
}
.contact-form-min textarea {
  box-sizing: border-box;
  min-height: 0;
  height: 38px;               /* one line — text sits right on the underline (JS keeps it exact) */
  line-height: 1.5;
  overflow: hidden;           /* JS grows it downward as more lines are typed */
  resize: none;
}
/* Submit — same style as the site's text links (.more-link) */
.submit-link {
  align-self: center;
  background: none;
  border: none;
  font-family: inherit;
  color: var(--black);
  cursor: pointer;
  margin-top: 16px;
}
.submit-link:disabled { opacity: .5; cursor: default; }
/* form status message — takes no space until it actually has a message */
.form-status {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
}
.form-status:not(:empty) { margin-top: 14px; }
.form-status.ok { color: #3f7d33; }
.form-status.err { color: #b23b3b; }

/* =========================================================
   Scroll-reveal micro animations
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s var(--ease),
    transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1000px) {
  .projects-grid,
  .projects-grid.featured { grid-template-columns: repeat(2, 1fr); }
  .projects-grid.featured .project-card:first-child { grid-column: span 2; grid-row: span 1; }
  .projects-grid.featured .project-card:first-child .ph { aspect-ratio: 16 / 9; flex: none; }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; padding: 0; row-gap: clamp(64px, 14vw, 100px); }
  .narrow-text { padding: 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 72px; --gutter: 20px; --gutter-s: 20px; }
  /* mobile: right-aligned, larger (wraps to new lines instead of shrinking) */
  .hero-title { text-align: right; }
  .hero-title h1 { font-size: 42px; white-space: normal; }
  .projects-grid,
  .projects-grid.featured { grid-template-columns: 1fr; }
  .projects-grid.featured .project-card:first-child { grid-column: auto; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

/* =========================================================
   Featured video grid (home) — 3 rows × 2 cols, hover-to-play
========================================================= */
.projects-grid.featured.video-grid {
  grid-template-columns: repeat(2, 1fr);
}
/* neutralise the "first card spans 2×2" featured behaviour here */
.projects-grid.featured.video-grid .project-card:first-child {
  grid-column: auto;
  grid-row: auto;
}
.projects-grid.featured.video-grid .project-card .ph,
.projects-grid.featured.video-grid .project-card:first-child .ph {
  aspect-ratio: 16 / 9;
  flex: none;
  width: 100%;
}
.projects-grid.video-grid .ph::before { display: none; }        /* hide placeholder diagonal */
.projects-grid.video-grid .project-card:hover .ph::after { opacity: 0; } /* clean video on hover */

.ph.has-media::before { display: none; }   /* hide placeholder diagonal when media is present */
.ph .card-video,
.ph .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: var(--ph-bg);
  transition: transform .6s var(--ease);
}
.project-card:hover .card-img { transform: scale(1.03); }
/* hover-video sits above the thumbnail and fades in only once it's actually playing (no jump) */
.ph .card-video.hover-video { opacity: 0; z-index: 1; transition: opacity .3s var(--ease), transform .6s var(--ease); }
.ph .card-video.hover-video.is-playing { opacity: 1; }
.project-card:hover .card-video.hover-video { transform: scale(1.03); }

@media (max-width: 720px) {
  .projects-grid.featured.video-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Project page — leading video + real image gallery
========================================================= */
.project-video-wrap {
  position: relative;
  width: 100%;
  border: 1px solid var(--ph-border);
  background: #000;
  overflow: hidden;
}
.project-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.project-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ph-bg);
  border: 1px solid var(--ph-border);
}
.project-img.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.project-img:hover img { transform: scale(1.03); }

@media (max-width: 720px) {
  .project-img.wide { aspect-ratio: 4 / 3; }
}

/* =========================================================
   Brand accents (subtle) — colors CE722A / CCD864 / 6FC5CF
========================================================= */
/* (colored bar under section titles removed) */

/* active / hover filter underline picks up the warm accent */
.filter-btn:hover::after,
.filter-btn.active::after { background: var(--accent-warm); }
.filter-btn.active { color: var(--accent-warm); }

/* "read more" links: only the underline reacts on hover (stays black) */
.more-link:hover::after { background: var(--black); }

/* subtle divider above the footer */
.site-footer { border-top: 1px solid rgba(14, 15, 17, .1); }

/* =========================================================
   Project page — hero media slider + fullscreen lightbox
========================================================= */
.proj-slides { position: absolute; inset: 0; z-index: 0; }
.proj-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); cursor: zoom-in; }
.proj-slide.active { opacity: 1; }
.proj-slide img, .proj-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* name + city caption (bottom-right), like the home cards */
.proj-hero-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--white);
  pointer-events: none;   /* let the video's player controls stay clickable */
}
.proj-hero-caption strong { font-weight: 700; font-size: clamp(30px, 4.2vw, 58px); letter-spacing: -.01em; line-height: 1.05; white-space: nowrap; }
.proj-hero-caption .city { font-weight: 400; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.05; opacity: .95; white-space: nowrap; }

.pslide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 54px; height: 54px; border-radius: 50%;   /* same size as the burger */
  display: flex; align-items: center; justify-content: center;
  color: var(--white); cursor: pointer;
  background: rgba(14, 15, 17, .42); border: 1.5px solid rgba(246, 245, 241, .7);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.pslide-arrow:hover { background: var(--accent-warm); border-color: var(--accent-warm); transform: translateY(-50%) scale(1.06); }
.pslide-arrow svg { width: 28px; height: 28px; }
.pslide-prev { right: var(--gutter-s); }    /* RTL: previous on the right, inside the page margin */
.pslide-next { left: var(--gutter-s); }

.proj-dots {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3;
  display: flex; gap: 16px; justify-content: center;
}
.proj-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(246, 245, 241, .45); transition: background .3s var(--ease), transform .3s var(--ease);
}
.proj-dots button.active { background: var(--white); transform: scale(1.25); }

/* Fullscreen lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 8, 10, .94);
}
.lightbox.open { display: flex; }
body.lb-open { overflow: hidden; }
.lb-stage { max-width: 92vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.lb-stage img, .lb-stage video { max-width: 92vw; max-height: 86vh; object-fit: contain; display: block; }
.lb-btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); cursor: pointer;
  background: rgba(246, 245, 241, .08); border: 1px solid rgba(246, 245, 241, .28);
  transition: background .3s var(--ease);
}
.lb-btn:hover { background: rgba(246, 245, 241, .2); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 22px; left: 22px; }
.lb-arrow { top: 50%; transform: translateY(-50%); }
.lb-prev { right: 22px; }   /* RTL: previous on the right */
.lb-next { left: 22px; }
.lb-counter { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: rgba(246, 245, 241,.8); font-size: 14px; letter-spacing: .12em; }

@media (max-width: 720px) {
  .lb-btn { width: 44px; height: 44px; }
  .lb-close { top: 14px; left: 14px; }
}

/* =========================================================
   Home hero — large centered watermark logo (parallax on scroll)
========================================================= */
.hero-logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(520px, 62vw);
  opacity: .7;
  pointer-events: none;
  will-change: transform;
}
.hero-logo img { width: 100%; height: auto; display: block; }
.hero-logo-white { filter: brightness(.965); }                          /* white → ~#F6F5F1 */
.hero-logo-color {                                                       /* colored, revealed bottom→top on scroll */
  position: absolute; inset: 0;
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}
.logo .logo-light { filter: brightness(.965); }
/* on the homepage the big centered logo replaces the small corner one */
body.home .site-header .logo { display: none; }
@media (max-width: 720px) {
  .hero-logo { width: min(360px, 74vw); }
}

/* =========================================================
   Recolor — content bands + homepage hero tweaks
========================================================= */
/* (colored section bands removed — site stays on the calm off-white) */

/* homepage hero: hide the tagline; keep the burger on the LEFT even though the corner logo is hidden */
body.home .hero-title { display: none; }
body.home .header-inner { justify-content: flex-end; }   /* RTL: flex-end = left */

/* =========================================================
   Featured-projects band + footer readability
========================================================= */
/* "פרויקטים נבחרים" gets its own light panel, inset 40px top & bottom */
.projects {
  background: #F6F5F1;
  margin: 40px 0;
  padding: var(--section-y) 0;
}

/* footer text: dark & readable on the light footer */
.site-footer .footer-copy { color: #4b4d51; }
.site-footer .footer-contact li { color: #2c2d30; }
.site-footer .footer-credit a:hover,
.site-footer .footer-contact a:hover { color: var(--accent-warm); }

/* =========================================================
   Project page — "על הפרויקט" text block + details
========================================================= */
/* description uses the site's normal margins (full container width) */
.project-about { text-align: right; display: none; }   /* project-info hidden for now */
/* same size as the detail labels (לקוח / גודל …), medium weight */
.project-about-title { font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; margin-bottom: 24px; }
/* equal top & bottom padding; tighter under a video hero */
.project-main .project-body { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.project-main.has-video-hero .project-body { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.project-back { margin-top: clamp(40px, 5vw, 64px); }
.project-about .project-desc {
  font-size: clamp(16px, 1.4vw, 19px);   /* same size as the "על הפרויקט" title */
  line-height: 1.9;
  font-weight: 400;
  color: var(--black);
  text-align: justify;
  margin: 0;
}
.project-details {
  display: grid;
  grid-template-columns: 130px 1fr;   /* [label right] [value left] */
  column-gap: 40px;
  row-gap: 26px;
  margin-top: 44px;
  align-items: start;
}
.project-details dt { font-weight: 500; text-align: right; font-size: clamp(16px, 1.4vw, 19px); color: var(--black); }
.project-details dd { margin: 0; text-align: right; font-weight: 400; line-height: 1.6; font-size: clamp(16px, 1.4vw, 19px); color: var(--black); }
.project-about .is-placeholder,
.project-details dd.is-placeholder { color: #6b6d72; font-weight: 300; }
@media (max-width: 560px) {
  .project-details { grid-template-columns: 96px 1fr; column-gap: 22px; }
}

/* Video hero — a plain player, full-bleed like the home hero */
.project-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 0; }
/* fallback page title (projects without a video hero) */
.project-pagetitle { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 40px; }
.project-pagetitle strong { font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.01em; }
.project-pagetitle .city { font-weight: 400; font-size: clamp(28px, 3.4vw, 48px); color: var(--gray-500); }

/* Images — 2-column grid (like the home page) below the description */
.project-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2vw, 28px);
  margin-top: clamp(40px, 5vw, 64px);
}
.project-images .project-img {
  padding: 0; border: none; cursor: zoom-in; width: 100%; font: inherit;
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--ph-bg); display: block;
}
.project-images .project-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.project-images .project-img:hover img { transform: scale(1.04); }
@media (max-width: 720px) { .project-images { grid-template-columns: 1fr; } }
/* mobile only: tighter gap between project name and city */
@media (max-width: 720px) { .proj-hero-caption { gap: 4px 8px; } }

/* =========================================================
   Project hero — slim custom player (revealed on bottom-hover)
========================================================= */
.pv-bar {
  position: absolute;
  left: var(--gutter-s); right: var(--gutter-s);
  bottom: clamp(18px, 3vh, 36px);
  z-index: 4;
  display: flex; align-items: center; gap: 16px;
  height: 44px; padding: 0 18px;
  border-radius: 999px;
  background: rgba(14, 15, 17, .42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--white);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.pv-bar.show { opacity: 1; pointer-events: auto; }
.pv-btn { background: none; border: none; color: inherit; cursor: pointer; padding: 0; width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pv-btn .pv-ic { width: 20px; height: 20px; display: block; }
/* play/pause icon toggle */
.pv-play .pv-ic-pause { display: none; }
.pv-play.is-playing .pv-ic-play { display: none; }
.pv-play.is-playing .pv-ic-pause { display: block; }
/* mute/sound icon toggle */
.pv-mute .pv-ic-sound { display: none; }
.pv-mute:not(.is-muted) .pv-ic-muted { display: none; }
.pv-mute:not(.is-muted) .pv-ic-sound { display: block; }
/* progress track */
.pv-track { flex: 1; height: 4px; border-radius: 2px; background: rgba(246, 245, 241, .3); cursor: pointer; direction: ltr; overflow: hidden; }
.pv-fill { height: 100%; width: 0; background: var(--white); }

/* a bit more air between the featured grid and the "עוד פרויקטים" button */
.projects .center { margin-top: clamp(24px, 3vw, 40px); }

/* =========================================================
   Client logos ("מבין לקוחותינו")
========================================================= */
.client-logo {
  aspect-ratio: 3 / 2;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.client-logo img { max-width: 80%; max-height: 80%; width: auto; height: auto; object-fit: contain; display: block; }
.client-logo:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(14, 15, 17, .07); }

/* mobile: a touch more side margin for the text sections */
@media (max-width: 720px) {
  .narrow-text, .narrow-wrap { padding-left: 20px; padding-right: 20px; }
}

/* =========================================================
   Mobile menu — CE722A panel washes in from the right
========================================================= */
@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: var(--accent-warm);
    display: flex;
    flex-direction: column;
    align-items: center;            /* links centered horizontally */
    justify-content: flex-start;    /* pushed toward the top */
    gap: clamp(26px, 4.5vh, 42px);
    padding: clamp(150px, 24vh, 240px) 40px 0;
    overflow: hidden;
    transform: translateX(100%);    /* off-screen to the right */
    transition: transform .5s var(--ease);
    pointer-events: none;
  }
  .nav-wrap.open .main-nav {
    transform: translateX(0);       /* washes in */
    pointer-events: auto;
  }
  /* faint logo watermark in the lower area */
  .main-nav::after {
    content: "";
    position: absolute;
    left: -12%; right: -12%; bottom: 7%;
    height: 26%;
    background: url("Media/%D7%9C%D7%95%D7%92%D7%95/logo-light.png") no-repeat center / contain;
    opacity: .12;
    pointer-events: none;
  }
  /* links: centered, white, wide letter-spacing */
  .main-nav a,
  body.page .main-nav a {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    color: var(--white);
    font-size: 23px;
    font-weight: 400;
    letter-spacing: .2em;
    text-align: center;
    padding: 4px 0;
    transition-delay: 0s;
  }
  .main-nav a::after,
  body.page .main-nav a::after { display: none; }
  /* burger (X) stays tappable at the top-left */
  .burger { position: relative; z-index: 200; }
  /* enlarge the company logo in the header on mobile */
  .logo { height: 40px; }
  /* CLICK-ONLY on mobile: hover must NOT reveal links or morph the burger (fixes narrowed-desktop) */
  .nav-wrap:hover .main-nav a { opacity: 1; transform: none; }
  .nav-wrap:hover .main-nav a:nth-child(1),
  .nav-wrap:hover .main-nav a:nth-child(2),
  .nav-wrap:hover .main-nav a:nth-child(3) { transition-delay: 0s; }
  .nav-wrap:hover .burger span:nth-child(1) { top: 26px; transform: translateX(-50%); }
  .nav-wrap:hover .burger span:nth-child(2) { top: 34px; transform: translateX(-50%); }
  /* only the open (clicked) state morphs the burger into an X */
  .nav-wrap.open .burger span:nth-child(1) { top: 30px; transform: translateX(-50%) rotate(45deg); }
  .nav-wrap.open .burger span:nth-child(2) { top: 30px; transform: translateX(-50%) rotate(-45deg); }
  /* hide the logo while the menu is open, but KEEP its space so the burger doesn't jump right */
  body.menu-open .site-header .logo { visibility: hidden; }
}
