/* Shared design system for shor-arc.co.il */
:root {
  --bg: #fafafa;
  --dark: #212121;
  --dark-soft: #2e2e2e;
  --khaki: #c4bd97;
  --khaki-light: #e2ddc8;
  --ink: #212121;
  --ink-soft: #4d4b44;
  --ink-mute: #85817a;
  --white-text: #fdfbf5;
  --rule: #e5dfd0;

  --font-he: "Assistant", "Heebo", sans-serif;
  --font-he-thin: "Assistant", "Heebo", sans-serif;
  --font-he-light: "Assistant", "Heebo", sans-serif;
  --font-he-medium: "Assistant", "Heebo", sans-serif;
  --font-he-black: "Assistant", "Heebo", sans-serif;
  --font-en: "Cera GR", "CeraGR", "Cera Pro", "Cera", "Jost", "Helvetica Neue", sans-serif;

  --max: 1320px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171412; --ink: #efe9dc; --ink-soft: #c4beae; --ink-mute: #857f70;
    --rule: #2a2619; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171412; --ink: #efe9dc; --ink-soft: #c4beae; --ink-mute: #857f70;
  --rule: #2a2619; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; direction: rtl;
  font-family: var(--font-he); font-weight: 400;
  background: var(--bg); color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }

/* NAV */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { max-width: none; margin: 0;
  padding-block: 0.7rem;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
}
.logo { background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--ink); text-align: right; line-height: 1.1; font-family: var(--font-he);
  justify-self: start; text-decoration: none;
}
.logo .mark { font-family: var(--font-he-medium); font-size: 1.4rem; font-weight: 500; letter-spacing: 0.02em; display: block; }
.logo .sub { font-family: var(--font-en); font-size: 0.65rem; letter-spacing: 0.35em; color: var(--ink-mute); text-transform: uppercase; margin-top: 4px; font-weight: 400; }
.menu { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; align-items: center; justify-content: center; }
.menu a { background: none; border: 0; cursor: pointer; padding: 0.4rem 0;
  color: var(--ink-soft); font-size: 0.98rem; font-weight: 400;
  position: relative; font-family: var(--font-he);
  text-decoration: none; transition: color 0.2s ease;
}
.menu a:hover { color: var(--ink); }
.menu a.active { color: var(--ink); }
.menu a.active::after { content: ""; position: absolute; bottom: -3px; right: 50%; transform: translateX(50%); width: 20px; height: 1px; background: var(--khaki); }
.nav-right { justify-self: end; display: flex; gap: 0.75rem; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; font-size: 1.4rem; }
.theme-toggle { background: none; border: 1px solid #212121; color: #212121;
  padding: 0.35rem 0.8rem; font-size: 0.75rem; cursor: pointer; border-radius: 999px; font-family: inherit; }
.theme-toggle:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
@media (max-width: 920px) {
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .menu { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  .menu.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; right: 0; left: 0;
    background: var(--bg); padding: 0.5rem max(24px, env(safe-area-inset-right, 0px));
    border-bottom: 1px solid var(--rule); z-index: 55; }
  .menu.open a { padding: 1rem 0; text-align: right; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .menu.open a:last-child { border-bottom: 0; }
}

/* HERO */
.hero { position: relative; height: min(80vh, 760px); min-height: 500px; overflow: hidden; background: #0f0d0a; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%),
    url('../images/projects/copy-of-project3/thumb.jpg');
}
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 2rem max(24px, env(safe-area-inset-left, 0px)); color: var(--white-text); }
.hero h1 { font-family: var(--font-he-medium); font-weight: 500; font-size: clamp(2rem, 5.6vw, 4.4rem);
  line-height: 1.25; margin: 0; letter-spacing: -0.01em; text-wrap: balance;
  color: var(--white-text); text-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.hero h1 .l2 { display: block; margin-top: 0.3em; }

/* SECTIONS */
section { padding-block: clamp(4rem, 8vw, 7rem); }
.wrap { max-width: var(--max); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.section-head { text-align: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head h2 { font-family: var(--font-he); font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 0; letter-spacing: 0; color: inherit; line-height: 1.2; }
.section-head h2::after { content: ""; display: block; width: 40px; height: 1px; background: currentColor; margin: 1rem auto 0; opacity: 0.8; }
.dark-sec { background: var(--dark); color: var(--white-text); }
.dark-sec .section-head h2 { color: var(--white-text); }
.dark-sec .section-head h2::after { background: var(--white-text); opacity: 0.6; }

/* SERVICES */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem 2rem; max-width: 1200px; margin: 0 auto; }
@media (max-width: 920px) { .services { grid-template-columns: repeat(2, 1fr); gap: 3.5rem 2rem; } }
@media (max-width: 500px) { .services { grid-template-columns: 1fr; gap: 3rem; } }
.service { display: flex; flex-direction: column; align-items: center; text-align: center; }
.disc-area { position: relative; width: 170px; height: 170px; margin-bottom: 1.5rem; flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.disc { position: absolute; inset: 0; border-radius: 50%; background: var(--khaki-light);
  transition: opacity 0.4s ease, transform 0.4s ease; }
.main-title { position: relative; font-family: var(--font-he); font-weight: 400; font-size: 1.4rem;
  color: var(--khaki); line-height: 1.25; padding: 0 0.5rem; opacity: 0;
  transition: opacity 0.4s ease; text-wrap: balance; }
.service:hover .disc { opacity: 0; transform: scale(0.9); }
.service:hover .main-title { opacity: 1; }
@media (hover: none) {
  .service .disc { opacity: 1; } .service .main-title { opacity: 0; }
  .service:active .disc { opacity: 0; } .service:active .main-title { opacity: 1; }
}
.service-copy { max-width: 26ch; }
.service-copy .sub { font-family: var(--font-he); font-weight: 400; font-size: 1.15rem; color: var(--white-text); margin: 0 0 1rem; line-height: 1.35; }
.service-copy p { font-family: var(--font-he); font-weight: 400; font-size: 0.95rem; line-height: 1.7; color: rgba(253,251,245,0.85); margin: 0 0 1rem; }
.service-copy .tag { font-family: var(--font-he); font-weight: 400; font-size: 0.95rem; color: var(--khaki); margin: 0; letter-spacing: 0; }

/* PROJECTS */
.projects-sec { background: #ffffff; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.projects.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 1100px; }
/* Masonry gallery for all-projects page: natural aspect ratios, Wix-style */
.projects.masonry { display: block; column-count: 3; column-gap: 2rem; max-width: 1280px; }
.projects.masonry .pcard { break-inside: avoid; margin-bottom: 2rem; display: block; }
.projects.masonry .pcard .thumb { aspect-ratio: auto; height: auto; }
.projects.masonry .pcard .thumb img { height: auto; object-fit: initial; }
.projects.masonry .pcard .pname { display: none; }
@media (max-width: 900px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .projects.cols-2 { grid-template-columns: 1fr; }
  .projects.masonry { column-count: 2; }
}
@media (max-width: 500px) {
  .projects { grid-template-columns: 1fr; }
  .projects.masonry { column-count: 1; }
}
.pcard { background: none; border: 0; padding: 0; text-align: right; cursor: pointer;
  font-family: inherit; color: inherit; text-decoration: none;
  display: flex; flex-direction: column; gap: 0.75rem; }
.pcard .thumb { aspect-ratio: 4 / 3; background: #f0ece0; overflow: hidden; position: relative; }
.pcard .thumb img, .pcard .thumb > div { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease; display: block; }
/* Hover: image fades, project name appears in black in the center (Wix-style) */
.pcard .thumb::after {
  content: attr(data-title);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0);
  color: #212121; font-family: var(--font-he); font-weight: 500; font-size: 1.15rem;
  opacity: 0; transition: background 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.pcard:hover .thumb img, .pcard:hover .thumb > div { opacity: 0.35; }
.pcard:hover .thumb::after { background: rgba(255,255,255,0.75); opacity: 1; }
.pcard .pname { font-family: var(--font-he); font-weight: 400; font-size: 0.95rem; color: var(--ink); margin: 0.2rem 0 0; line-height: 1.3; }

.more { text-align: center; margin-top: 3.5rem; }

/* + BUTTON */
.btn-plus { display: inline-flex; flex-direction: row-reverse;
  align-items: stretch; background: transparent; border: 1px solid var(--ink);
  font-family: var(--font-he); font-size: 1.05rem; font-weight: 400; letter-spacing: 0.02em;
  cursor: pointer; color: var(--ink); transition: background 0.3s ease, color 0.3s ease;
  min-height: 56px; min-width: 320px; text-decoration: none; }
.btn-plus .plus { padding: 0 1.4rem; border-right: 1px solid var(--ink); font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center; line-height: 1; }
.btn-plus .label { padding: 0 3rem; display: flex; align-items: center; justify-content: center; flex: 1; line-height: 1; }
.btn-plus:hover { background: var(--ink); color: #fff; }
.btn-plus:hover .plus { border-right-color: #fff; }

.btn-simple { display: inline-block; padding: 0.95rem 2.5rem; background: transparent; color: var(--ink);
  border: 1px solid var(--ink); font-family: var(--font-he); font-size: 0.95rem; font-weight: 400;
  letter-spacing: 0.05em; cursor: pointer; text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease; }
.btn-simple:hover { background: var(--ink); color: #fff; }

/* ABOUT split panels */
.about-split { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .about-split { grid-template-columns: 1fr; } }
.about-panel { padding: clamp(3rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem); color: var(--ink); text-align: right; }
.about-panel h3 { font-family: var(--font-he); font-weight: 400; font-size: 1.85rem; margin: 0 0 1.5rem; color: var(--ink); }
.about-panel h3::after { content: ""; display: block; width: 30px; height: 1px; background: var(--ink); margin-top: 0.75rem; opacity: 0.4; }
.about-panel p { font-family: var(--font-he); font-weight: 400; font-size: 1.1rem; line-height: 1.85; color: var(--ink); margin: 0; }
.about-panel p + p { margin-top: 0.1rem; }
.about-panel .sig { margin-top: 2rem; }
.about-right { background: var(--khaki-light); }
.about-left { background: var(--khaki); }

/* TAGLINE dark band */
.tagline-sec { background: var(--dark); color: var(--white-text); padding-block: clamp(4rem, 8vw, 6rem); text-align: center; }
.tagline-building { margin: 0 auto 2.5rem; width: 150px; opacity: 0.9; }
.tagline-text { font-family: var(--font-he); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.6; max-width: 44ch; margin: 0 auto; letter-spacing: 0; }

/* CLIENTS */
.clients-sec { background: #ffffff; }
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem 1rem; align-items: center; justify-items: center; max-width: 1150px; margin: 0 auto; }
.client-slot { aspect-ratio: 5 / 3; width: 100%; background: transparent; border: none;
  display: flex; align-items: center; justify-content: center; padding: 0.4rem;
  filter: grayscale(100%); opacity: 0.75; transition: filter 0.3s ease, opacity 0.3s ease; }
.client-slot:hover { filter: grayscale(0); opacity: 1; }
.client-slot img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.clients-note { text-align: center; color: var(--ink-mute); font-size: 0.85rem; margin-top: 2rem; }

/* FOOTER */
footer { background: var(--dark); color: #c9c3b5; padding-block: 4rem 2rem; }
.footer-inner { max-width: var(--max); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px)); text-align: center; }
footer .brand { font-family: var(--font-he); font-weight: 400; font-size: 1.9rem; color: var(--white-text); margin: 0; letter-spacing: 0; }
footer .brand::after { content: ""; display: block; width: 36px; height: 1px; background: rgba(253,251,245,0.6); margin: 1rem auto 0; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1.5rem 3rem; margin-top: 2rem; font-family: var(--font-he); font-size: 0.95rem; font-weight: 400;
  color: rgba(253,251,245,0.9); }
.contact-row a { color: inherit; text-decoration: none; }
.contact-row a:hover { color: var(--khaki); }
.socials { display: flex; justify-content: center; gap: 1rem; margin-top: 1.75rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: transparent;
  border: 1px solid rgba(253,251,245,0.3); display: flex; align-items: center; justify-content: center;
  color: var(--white-text); text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease; }
.socials a:hover { background: var(--khaki); border-color: var(--khaki); color: var(--dark); }
.socials svg { width: 18px; height: 18px; }
.map { margin-top: 2.5rem; aspect-ratio: 16 / 5; max-height: 260px; width: 100%; overflow: hidden; background: #333; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) brightness(0.85); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(253,251,245,0.12);
  text-align: center; color: rgba(253,251,245,0.4); font-family: var(--font-en); font-size: 0.75rem; letter-spacing: 0.1em; }

/* GENERIC PAGE HEADER (for non-home pages) */
.page-header { background: var(--bg); padding-block: clamp(4rem, 7vw, 6rem); text-align: center; }
.page-header h1 { font-family: var(--font-he); font-weight: 400; font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0; color: var(--ink); line-height: 1.2; }
.page-header h1::after { content: ""; display: block; width: 40px; height: 1px; background: var(--khaki); margin: 1rem auto 0; }
.page-header .subtitle { font-family: var(--font-he); font-weight: 400; font-size: 1.1rem;
  color: var(--ink-soft); margin: 1.2rem 0 0; }

/* PROJECT SINGLE */
.project-hero { background: #ffffff; padding-block: 2rem 4rem; }
.project-hero h1 { font-family: var(--font-he); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 0.5rem; color: var(--ink); }
.project-hero .loc { font-family: var(--font-he); font-size: 1.05rem; color: var(--ink-soft); margin: 0; }
.project-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 600px) { .project-gallery { grid-template-columns: 1fr; } }
.project-gallery .full { grid-column: 1 / -1; }
.project-gallery .gitem { background: #e0e0e0; overflow: hidden; }
.project-gallery .gitem img, .project-gallery .gitem > div { width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4 / 3; }
.project-gallery .full .gitem img, .project-gallery .full .gitem > div { aspect-ratio: 16 / 9; }

/* POST */
.post-body { max-width: 720px; margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.post-body .date { font-family: var(--font-en); font-size: 0.8rem; letter-spacing: 0.2em;
  color: var(--khaki); text-transform: uppercase; margin-bottom: 1rem; display: block; }
.post-body h1 { font-family: var(--font-he); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.3; margin: 0 0 2rem; color: var(--ink); text-wrap: balance; }
.post-body p { font-family: var(--font-he); font-weight: 400; font-size: 1.1rem; line-height: 1.9;
  color: var(--ink); margin: 0 0 1.2rem; }
.post-body img { margin: 2rem auto; }

/* CONTACT form (dumb client-side) */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1000px; margin: 0 auto; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info h3 { font-family: var(--font-he); font-weight: 400; font-size: 1.4rem; margin: 0 0 1.5rem; }
.contact-info p { font-family: var(--font-he); font-size: 1.05rem; margin: 0.4rem 0; color: var(--ink); }
.contact-info a { color: inherit; text-decoration: none; }
.contact-info a:hover { color: var(--khaki); text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-form label { font-size: 0.85rem; color: var(--ink-soft); font-family: var(--font-he); }
.contact-form input, .contact-form textarea {
  font-family: var(--font-he); font-size: 1rem; padding: 0.75rem; border: 1px solid var(--rule);
  background: #fff; border-radius: 2px; direction: rtl;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--khaki); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { margin-top: 0.5rem; padding: 0.9rem 2rem; background: var(--ink); color: #fff;
  border: 0; font-family: var(--font-he); font-size: 1rem; cursor: pointer; letter-spacing: 0.05em; }
.contact-form button:hover { background: var(--khaki); color: var(--ink); }

/* BLOG LIST — single column stacked, like original Wix site */
.blog-list { display: flex; flex-direction: column; gap: 1.5rem; max-width: 720px; margin: 0 auto; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--rule); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.post-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
/* Only show thumb if the card HAS a real image (not a placeholder); hide empty placeholders */
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--khaki-light); overflow: hidden; display: none; }
.post-card.has-image .thumb { display: block; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .post-body-stub { padding: 1.4rem 1.6rem 1.6rem; }
.post-card .date { font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.15em; color: var(--ink-mute); text-transform: uppercase; }
.post-card .post-title { font-family: var(--font-he); font-weight: 400; font-size: 1.25rem; margin: 0.5rem 0 0; line-height: 1.4; color: var(--ink); text-wrap: balance; }

.placeholder-note { position: fixed; bottom: 12px; left: 12px; z-index: 100;
  background: var(--khaki); color: var(--dark); padding: 10px 14px;
  font-family: var(--font-he); font-size: 0.78rem; max-width: 320px; line-height: 1.5;
  border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.placeholder-note button { background: none; border: 0; color: var(--dark); cursor: pointer; padding: 0 0 0 4px; font-size: 1rem; vertical-align: middle; font-family: inherit; }

/* Fix: ensure post hero image and project gallery images fill their containers */
.post-body > div > img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; display: block; }
.project-gallery .gitem > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Fix: panels with fixed light-colored backgrounds must keep dark text in dark mode too */
.about-panel,
.about-panel h3,
.about-panel p { color: #212121 !important; }
.about-panel h3::after { background: #212121 !important; }

/* White sections (projects, clients) too */
.projects-sec, .clients-sec { color: #212121; }
.projects-sec .section-head h2,
.clients-sec .section-head h2,
.projects-sec .pname,
.clients-sec .clients-note,
.clients-sec .client-slot { color: #212121; }
.projects-sec .section-head h2::after,
.clients-sec .section-head h2::after { background: #212121; }

/* Project/post header pages also always have the light cream bg */
.page-header h1 { color: #212121 !important; }
.page-header .subtitle { color: #4d4b44 !important; }

/* Post body and project hero (always light bg) */
.post-body, .post-body h1, .post-body p,
.project-hero, .project-hero h1, .project-hero .loc { color: #212121 !important; }

/* Jobs page content wrapper (same light bg) */
section > .wrap > div[style*="text-align: right"],
section > .wrap > div[style*="text-align: right"] p,
section > .wrap > div[style*="text-align: right"] h3 { color: #212121 !important; }

/* Contact form text */
.contact-info, .contact-info h3, .contact-info p { color: #212121 !important; }
.contact-form label { color: #4d4b44 !important; }

/* Service disc icons - architectural line art */
.disc-area .svc-icon { position: absolute; inset: 15%; color: #212121; opacity: 0.85; pointer-events: none; }
.disc-area .svc-icon svg { width: 100%; height: 100%; display: block; }
.service:hover .disc-area .svc-icon { opacity: 0; transition: opacity 0.3s ease; }

/* Logo image in nav */
.logo-img { height: 72px; width: auto; display: block; }

/* Fix: white nav bar so logo blends in (logo has white background) */
.nav { background: #ffffff !important; border-bottom: 1px solid var(--rule); }
.nav .logo .mark, .nav .menu button, .nav .menu a { color: #212121; }
.nav .logo .sub { color: #85817a; }
.nav .theme-toggle { color: #212121; border-color: #212121; }
.nav .theme-toggle:hover { color: #212121; border-color: #212121; background: rgba(0,0,0,0.04); }
.nav .menu-toggle { color: #212121; }
.nav .menu button.active::after, .nav .menu a.active::after { background: var(--khaki); }

/* Mobile: hamburger + theme toggle flush to left edge */
@media (max-width: 920px) {
  .nav-inner {
    padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
    gap: 0.5rem !important;
  }
  .nav-right { gap: 0.3rem !important; }
  .logo .sub { display: none; } /* save space on mobile */
  .logo-img { height: 54px; }
}

/* JOBS page — text on right, tall image on left (Wix-style) */
.jobs-sec { padding: 2rem 0 5rem; }
.jobs-grid { max-width: 1200px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.jobs-text { font-family: var(--font-he); font-size: 1.05rem; line-height: 1.85; color: var(--ink); text-align: right; }
.jobs-text p { margin: 0 0 1rem; }
.jobs-heading { font-family: var(--font-he); font-weight: 500; font-size: 1.6rem; margin: 0 0 1.5rem; color: var(--ink); }
.jobs-heading::after { content: ""; display: block; width: 36px; height: 1px; background: var(--khaki); margin-top: 0.75rem; }
.jobs-offer { margin-top: 2rem !important; margin-bottom: 1.8rem !important; }
.jobs-mail { color: var(--ink); text-decoration: underline; }
.jobs-list { padding-right: 1.2rem; margin: 0.4rem 0 1.5rem; }
.jobs-list li { margin-bottom: 0.4rem; }
.jobs-subheading { font-family: var(--font-he); font-weight: 500; font-size: 1.25rem; margin: 2rem 0 0.8rem; color: var(--ink); }
.jobs-image { position: sticky; top: 100px; }
.jobs-image img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .jobs-grid { grid-template-columns: 1fr; gap: 2rem; }
  .jobs-image { position: static; order: -1; max-height: 50vh; overflow: hidden; }
}

/* project detail gallery - natural proportions, no cropping */
.pg img{width:100%;height:auto;display:block}
.pg-first{margin-bottom:2rem}
.pg-rest{column-count:2;column-gap:2rem}
.pg-item{break-inside:avoid;margin-bottom:2rem}
@media (max-width:600px){.pg-rest{column-count:1}}

.disc-area .svc-icon img{width:100%;height:100%;object-fit:contain;display:block}

/* פרויקטים נוספים - שחור מלא */
.more .btn-plus { color: #000 !important; border-color: #000 !important; opacity: 1 !important; }
.more .btn-plus .plus { border-right-color: #000 !important; color: #000 !important; }
.more .btn-plus .label { color: #000 !important; }
.more .btn-plus:hover, .more .btn-plus:active { background: #000; color: #fff !important; }
.more .btn-plus:hover .label, .more .btn-plus:hover .plus, .more .btn-plus:active .label, .more .btn-plus:active .plus { color: #fff !important; }
.more .btn-plus:hover .plus { border-right-color: #fff !important; }

/* ===== MOBILE (Wix-style): logo scrolls with page, floating translucent hamburger, hero image above text ===== */
@media (max-width: 920px) {
  .nav { position: static !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle {
    position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 12px; z-index: 70;
    width: 46px; height: 46px; padding: 0; display: flex !important; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.45); color: #212121 !important; border-radius: 4px;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    font-size: 1.6rem; line-height: 1;
  }
  .menu.open { position: fixed !important; top: calc(env(safe-area-inset-top, 0px) + 66px) !important; left: 0; right: 0;
    max-height: calc(100vh - 80px); overflow-y: auto; z-index: 65; box-shadow: 0 8px 24px rgba(0,0,0,0.15); background: #fff !important; }
  .menu.open a { color: #212121 !important; }

  .hero { height: auto; min-height: 0; background: #0f0d0a; }
  .hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3;
    background-image: url('../images/projects/copy-of-project3/thumb.jpg'); }
  .hero-content { position: static; display: block; padding: 3rem 24px 3.5rem; background: #0f0d0a; }
  .hero h1 { text-shadow: none; font-size: clamp(2rem, 9vw, 3rem); }
}
@media (max-width: 920px) { .nav-right { margin-left: 56px; } }

/* MOBILE: home project images full-bleed, uncropped, thin gap */
@media (max-width: 920px) {
  .projects-sec .wrap { padding-left: 0 !important; padding-right: 0 !important; }
  .projects-sec .section-head, .projects-sec .more { padding-left: 24px; padding-right: 24px; }
  .projects-sec .projects.cols-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .projects-sec .projects.cols-2 .pcard .thumb { aspect-ratio: auto; height: auto; }
  .projects-sec .projects.cols-2 .pcard .thumb img { height: auto; object-fit: initial; }
  .projects-sec .projects.cols-2 .pcard .pname { display: none; }
}

/* TAGLINE – original illustration, larger text, greyer band */
.tagline-sec { background: #2e2e2e !important; }
.tagline-art { display: flex; align-items: flex-start; justify-content: center; width: min(78vw, 420px); margin: 0 auto 3rem; }
.tagline-art .t-tower { width: 53%; height: auto; display: block; }
.tagline-art .t-house { width: 47%; height: auto; display: block; margin-top: 8%; margin-left: -4%; }
.tagline-text { max-width: none; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.5; }
@media (min-width: 921px) { .tagline-art { width: 440px; } .tagline-text { font-size: 2.2rem; } }

/* LOGO +25% */
.logo-img { height: 90px !important; }
@media (max-width: 920px) { .logo-img { height: 68px !important; } }

/* MOBILE: all-projects gallery edge-to-edge, single column, thin gap */
@media (max-width: 920px) {
  .projects-sec .wrap:has(.projects.masonry) { padding-left: 0 !important; padding-right: 0 !important; }
  .projects.masonry { column-count: 1 !important; column-gap: 0; }
  .projects.masonry .pcard { margin-bottom: 12px; }
}
@media (max-width: 920px) {
  .menu.open { top: 0 !important; padding-top: calc(env(safe-area-inset-top, 0px) + 70px) !important; padding-bottom: 0.5rem; }
  .menu.open a { display: block; width: 100%; text-align: center !important; padding: 0.95rem 0 !important; font-size: 1.15rem !important; border-bottom: 1px solid #e5e0d0 !important; }
}

/* MOBILE FULL-SCREEN MENU (like the original) */
.menu-home { display: none; }
@media (max-width: 920px) {
  .menu.open { position: fixed !important; inset: 0 !important; top: 0 !important; left: 0; right: 0; bottom: 0;
    max-height: none !important; height: 100vh; height: 100dvh; overflow-y: auto; z-index: 65;
    display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    background: #121212 !important; padding: 5rem 24px 3rem !important; box-shadow: none; border: 0; }
  .menu.open li { width: 100%; text-align: center; }
  .menu.open .menu-home { display: block; }
  .menu.open a { display: block; width: 100%; color: #fff !important; font-size: 1.7rem !important; font-weight: 300;
    padding: 1.3rem 0 !important; border: 0 !important; text-align: center !important; }
  .menu.open a.active::after { display: none; }
  .menu-toggle.is-open { background: transparent !important; color: #fff !important; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 1.8rem; }
}

/* TOUCH: first tap darkens the project + shows its name; second tap opens it */
@media (hover: none) {
  .pcard:hover .thumb img, .pcard:hover .thumb > div { opacity: 1; }
  .pcard:hover .thumb::after { background: rgba(0,0,0,0); opacity: 0; }
}
.pcard.tapped .thumb::after { background: rgba(0,0,0,0.62); color: #fff; opacity: 1; font-size: 1.7rem; font-weight: 400; }

/* Project pages: uniform background in dark mode (header block matches the gallery) */
:root[data-theme="dark"] .project-hero { background: var(--bg) !important; }
:root[data-theme="dark"] .project-hero, :root[data-theme="dark"] .project-hero h1, :root[data-theme="dark"] .project-hero .loc { color: var(--ink) !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .project-hero { background: var(--bg) !important; }
  :root:not([data-theme="light"]) .project-hero, :root:not([data-theme="light"]) .project-hero h1, :root:not([data-theme="light"]) .project-hero .loc { color: var(--ink) !important; }
}
:root:not([data-theme="dark"]) body:has(.project-hero) { background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body:has(.project-hero) { background: var(--bg); } }

/* share dots + sheet (all sizes) */
.post-card { position: relative; }
.share-dots { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; flex-direction: column; gap: 4px; align-items: center;
  width: 36px; height: 36px; justify-content: center; background: none; border: 0; cursor: pointer; padding: 0; }
.share-dots span { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-mute); display: block; }
.post-card .rt { font-family: var(--font-he); font-size: 0.8rem; color: var(--ink-mute); }
.share-sheet { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.55); display: flex; align-items: flex-end; justify-content: center; }
.share-sheet[hidden] { display: none; }
.share-box { background: #fff; color: #212121; width: 100%; max-width: 480px; padding: 1rem 1.2rem 1.4rem; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; }
.share-title { font-family: var(--font-he); font-size: 0.95rem; color: #4d4b44; padding: 0.4rem 0 0.8rem; border-bottom: 1px solid #e5e0d0; margin-bottom: 0.3rem; }
.share-box a, .share-box button { font-family: var(--font-he); font-size: 1.1rem; color: #212121; background: none; border: 0; text-align: right; padding: 0.9rem 0; text-decoration: none; cursor: pointer; border-bottom: 1px solid #f0ece0; }
.share-box .share-close { color: #85817a; border-bottom: 0; }

/* MOBILE: image cards edge-to-edge, white text over the image */
@media (max-width: 920px) {
  .blog-list { display: flex !important; flex-direction: column; gap: 12px !important; }
  .wrap:has(.blog-list) { padding-left: 0 !important; padding-right: 0 !important; }
  .blog-list { max-width: none !important; }
  .blog-list .post-card:not(.has-image) { margin: 0 24px; }
  .blog-list .post-card.has-image { aspect-ratio: 1 / 1; display: block; background: #000; overflow: hidden; box-shadow: none; transform: none; border: 0; }
  .blog-list .post-card.has-image .thumb { display: block; position: absolute; inset: 0; aspect-ratio: auto; }
  .blog-list .post-card.has-image .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.55) 100%); }
  .blog-list .post-card.has-image .post-body-stub { position: absolute; inset: 0; padding: 20px 20px 22px; display: flex; flex-direction: column; justify-content: flex-end; z-index: 2; background: none; }
  .blog-list .post-card.has-image .meta { position: absolute; top: 20px; right: 20px; }
  .blog-list .post-card.has-image .date, .blog-list .post-card.has-image .rt { color: #fff; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: none; }
  .blog-list .post-card.has-image .post-title { color: #fff; font-size: 2rem; font-weight: 700; line-height: 1.25; margin: 0; text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
  .blog-list .post-card.has-image .share-dots span { background: #fff; }
}

/* Posts: readable text in dark mode + meta row with share dots */
:root[data-theme="dark"] .post-body, :root[data-theme="dark"] .post-body h1, :root[data-theme="dark"] .post-body p,
:root[data-theme="dark"] .post-body li, :root[data-theme="dark"] .post-body strong { color: #f4f0e6 !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .post-body, :root:not([data-theme="light"]) .post-body h1, :root:not([data-theme="light"]) .post-body p,
  :root:not([data-theme="light"]) .post-body li, :root:not([data-theme="light"]) .post-body strong { color: #f4f0e6 !important; }
}
.post-body li { font-family: var(--font-he); line-height: 1.9; font-size: 1.1rem; }
.post-meta-row { display: flex; align-items: center; justify-content: space-between; }
.post-meta-row .date { margin: 0; }
.share-dots-post { position: static; }
.share-dots-post span { background: var(--khaki); }

/* Page headers (blog, about, contact, jobs, projects): readable in dark mode */
:root[data-theme="dark"] .page-header h1 { color: var(--ink) !important; }
:root[data-theme="dark"] .page-header .subtitle { color: var(--ink-soft) !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-header h1 { color: var(--ink) !important; }
  :root:not([data-theme="light"]) .page-header .subtitle { color: var(--ink-soft) !important; }
}

/* Dark mode: undo forced-dark text on jobs/contact content */
:root[data-theme="dark"] section > .wrap > div[style*="text-align: right"],
:root[data-theme="dark"] section > .wrap > div[style*="text-align: right"] p,
:root[data-theme="dark"] section > .wrap > div[style*="text-align: right"] h3,
:root[data-theme="dark"] .contact-info, :root[data-theme="dark"] .contact-info h3, :root[data-theme="dark"] .contact-info p,
:root[data-theme="dark"] .jobs-text, :root[data-theme="dark"] .jobs-heading, :root[data-theme="dark"] .jobs-mail { color: #f4f0e6 !important; }
:root[data-theme="dark"] .contact-form label { color: #c4beae !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) section > .wrap > div[style*="text-align: right"],
  :root:not([data-theme="light"]) section > .wrap > div[style*="text-align: right"] p,
  :root:not([data-theme="light"]) section > .wrap > div[style*="text-align: right"] h3,
  :root:not([data-theme="light"]) .contact-info, :root:not([data-theme="light"]) .contact-info h3, :root:not([data-theme="light"]) .contact-info p,
  :root:not([data-theme="light"]) .jobs-text, :root:not([data-theme="light"]) .jobs-heading, :root:not([data-theme="light"]) .jobs-mail { color: #f4f0e6 !important; }
  :root:not([data-theme="light"]) .contact-form label { color: #c4beae !important; }
}

/* Jobs – mobile: text first (tight, like the original), image below */
@media (max-width: 920px) {
  .jobs-sec { padding-top: 1rem; }
  .jobs-grid { gap: 1.5rem; }
  .jobs-image { order: 1 !important; max-height: none !important; overflow: visible !important; }
  .jobs-text { line-height: 1.5; font-size: 1.05rem; }
  .jobs-text p { margin: 0 0 0.25rem; }
  .jobs-heading { margin-bottom: 1rem; }
  .jobs-offer { margin-top: 1.2rem !important; margin-bottom: 0.8rem !important; }
  .jobs-subheading { margin: 1.2rem 0 0.3rem; }
  .jobs-list { margin: 0.2rem 0 0.8rem; }
  .jobs-list li { margin-bottom: 0.1rem; }
}
.jobs-sec { padding-top: 3rem; }
@media (max-width: 920px) { .jobs-sec { padding-top: 1.8rem; } }
@media (max-width: 920px) {
  .menu-toggle:not(.is-open) { background: rgba(255,255,255,0.14) !important; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); text-shadow: 0 0 6px rgba(255,255,255,0.7); }
}

/* Posts: tighter text */
.post-body p, .post-body li { line-height: 1.5 !important; }
.post-body p { margin: 0 0 0.45rem !important; }
.post-body li { margin-bottom: 0.15rem; }
.post-body ul { margin: 0.3rem 0 0.7rem; }
.post-body h1 { margin-bottom: 1.2rem; }

/* project info block + whole images */
.pinfo{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem 2rem;margin:0 0 2.5rem;text-align:right}
.pinfo span{display:block;font-size:.95rem;color:#8a8a8a;margin-bottom:.3rem}
.pinfo strong{display:block;font-weight:400;font-size:1.7rem;line-height:1.25;color:#212121}
:root[data-theme="dark"] .pinfo strong{color:#fff}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .pinfo strong{color:#fff}}
.pg img{width:100%;height:auto !important;object-fit:contain !important;aspect-ratio:auto !important}
.pg-item img,.pg-first img{display:block}
@media (max-width:920px){
  .pinfo strong{font-size:1.35rem}
  .pinfo{gap:1.2rem 1rem}
  body:has(.pg) section:not(.project-hero) .wrap{padding-inline:0}
  body:has(.pg) .pinfo{padding-inline:20px}
  .pg-first{margin-bottom:12px}
  .pg-rest{column-count:1;column-gap:0}
  .pg-item{margin-bottom:12px}
}

/* blog cards without image: full width, dark */
@media (max-width:920px){
  .blog-list .post-card:not(.has-image){margin:0 !important;background:#2b2b2b !important;border:0 !important;box-shadow:none !important;border-radius:0 !important}
  .blog-list .post-card:not(.has-image) .post-title{color:#fff !important}
  .blog-list .post-card:not(.has-image) .date,.blog-list .post-card:not(.has-image) .rt{color:#bdbdbd !important}
  .blog-list .post-card:not(.has-image) .share-dots span{background:#fff !important}
}

/* home: two projects, same height, natural proportions, no names */
.projects-sec .projects.cols-2 .pcard .pname{display:none}
.projects-sec .projects.cols-2 .pcard .thumb::after{display:none !important}
@media (min-width:921px){
  .projects-sec .projects.cols-2{display:flex;gap:2rem;max-width:1280px;align-items:flex-start}
  .projects-sec .projects.cols-2 .pcard:nth-child(1){flex:0.666 1 0;min-width:0}
  .projects-sec .projects.cols-2 .pcard:nth-child(2){flex:1.182 1 0;min-width:0}
  .projects-sec .projects.cols-2 .pcard .thumb{aspect-ratio:auto;height:auto}
  .projects-sec .projects.cols-2 .pcard .thumb img{width:100%;height:auto;object-fit:initial}
}

/* blog desktop: title takes the date colour on hover */
@media (hover:hover) and (min-width:921px){
  .post-card .post-title{transition:color .25s ease}
  .post-card:hover .post-title{color:var(--ink-mute) !important}
}

/* current page in nav: light-brown text, no underline */
.nav .menu a.active, .menu a.active { color: #a88c5a !important; }
.nav .menu a.active::after, .menu a.active::after { display: none !important; content: none !important; }
@media (max-width:920px){ .menu.open a.active{ color:#c9ab74 !important; } }

/* contact form: aligned fields + full-width button */
.contact-form{align-items:stretch}
.contact-form label{display:block;width:100%}
.contact-form input:not([type=hidden]):not([type=checkbox]),.contact-form textarea{display:block;width:100% !important;box-sizing:border-box;margin:.35rem 0 0}
.contact-form button{display:block;width:100%;box-sizing:border-box;margin:.5rem 0 0}


/* dark mode: dark header, inverted logos, no white squares */
:root[data-theme="dark"] .nav{background:#171412 !important}
:root[data-theme="dark"] .nav .logo .mark,:root[data-theme="dark"] .nav .menu button,:root[data-theme="dark"] .nav .menu a,:root[data-theme="dark"] .nav .menu-toggle{color:#e8e4dc}
:root[data-theme="dark"] .nav .theme-toggle{color:#e8e4dc;border-color:#e8e4dc}
:root[data-theme="dark"] .logo-img{filter:invert(1);mix-blend-mode:screen}
:root[data-theme="dark"] .clients-sec{background:#171412}
:root[data-theme="dark"] .clients-sec .section-head h2,:root[data-theme="dark"] .clients-sec .clients-note{color:#e8e4dc}
:root[data-theme="dark"] .clients-sec .section-head h2::after{background:#e8e4dc}
:root[data-theme="dark"] .client-slot{filter:grayscale(1) invert(1);mix-blend-mode:screen;opacity:.8}
@media (prefers-color-scheme: dark){

:root:not([data-theme="light"]) .nav{background:#171412 !important}
:root:not([data-theme="light"]) .nav .logo .mark,:root:not([data-theme="light"]) .nav .menu button,:root:not([data-theme="light"]) .nav .menu a,:root:not([data-theme="light"]) .nav .menu-toggle{color:#e8e4dc}
:root:not([data-theme="light"]) .nav .theme-toggle{color:#e8e4dc;border-color:#e8e4dc}
:root:not([data-theme="light"]) .logo-img{filter:invert(1);mix-blend-mode:screen}
:root:not([data-theme="light"]) .clients-sec{background:#171412}
:root:not([data-theme="light"]) .clients-sec .section-head h2,:root:not([data-theme="light"]) .clients-sec .clients-note{color:#e8e4dc}
:root:not([data-theme="light"]) .clients-sec .section-head h2::after{background:#e8e4dc}
:root:not([data-theme="light"]) .client-slot{filter:grayscale(1) invert(1);mix-blend-mode:screen;opacity:.8}
}

/* opt out of browser forced-dark (e.g. Brave/Chrome Android): the site handles dark mode itself */
:root{color-scheme:light dark}
:root[data-theme="light"]{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark}
