/*
 * projects.css - archive-project + single-project
 * Pass 6 - Figma-faithful rewrite (2026-06-18)
 * Figma node 136:7559 | 1440px canvas
 * Tokens: bg #f5f5f5 | dark #242424 | headings #181d27 | body #585858
 *   muted #8b8b8b | share-text #2f323c | cta-lime #c3e85b
 *   border-input #f5f6f6 | border-share #cecece | border-faq #e2e2e2
 *   faq-question #424242
 */

/* ============================================================
   ARCHIVE - HERO (dark) - Figma node 1:995
   Centered white title + subtitle, on-dark breadcrumb top-right.
   ============================================================ */
.projects-archive-header {
  position: relative;
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4.5rem, 9vw, 6.5rem);
}

/* Breadcrumb: in-flow, right-aligned at top (RTL: flex-start = right) */
.projects-archive-breadcrumb {
  justify-content: flex-start;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.projects-archive-header h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-align: center;
  margin-block: var(--space-4) 0;
  text-wrap: balance;
}

.projects-archive-subtitle {
  font-size: var(--size-lg);
  color: rgba(255, 255, 255, .8);
  margin-inline: auto;
  margin-top: var(--space-5);
  max-width: 880px;
  line-height: 1.65;
  text-align: center;
  text-wrap: pretty;
}

/* ============================================================
   FILTER CHIPS (light zone) - Figma node 1:995
   Clean, no colour: thin gray outline, gray uppercase EN text,
   transparent bg, small radius. Right-aligned above the grid.
   Active = clean dark outline + dark text (no division colour).
   No "all" chip: no active chip = all shown.
   ============================================================ */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* RTL: flex-start = right edge */
  gap: 12px;
  margin-bottom: var(--space-8);
  align-items: center;
}
@media (max-width: 480px) {
  .projects-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
}

.projects-filter-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 0.5rem 1.35rem;
  border-radius: 8px;
  font-size: var(--size-sm);
  font-weight: var(--weight-semi);
  background: transparent;
  color: #acacac;
  border: 1px solid #d5d5d5;
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
}

@media (hover: hover) {
  .projects-filter-btn:hover {
    color: #585858;
    border-color: #9e9e9e;
  }
}

.projects-filter-btn:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 3px;
}

/* Active: full dark fill - clean but prominent (Guy). Monochrome, no colour. */
.projects-filter-btn--active {
  color: #ffffff;
  border-color: #242424;
  background: #242424;
  box-shadow: none;
}
@media (hover: hover) {
  .projects-filter-btn--active:hover {
    color: #ffffff;
    border-color: #242424;
    background: #242424;
  }
}

/* ============================================================
   PROJECT GRID (archive)
   ============================================================ */
.projects-archive-grid-section {
  padding-block: var(--section-pad);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ============================================================
   PROJECT CARD — Figma 386x443px, photo card with gradient
   ============================================================ */
.project-card {
  position: relative;
  height: 443px;
  border-radius: 40px;
  overflow: hidden;
  background: var(--color-bg-dark);
  cursor: pointer;
}

.project-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #fff;
  position: relative;
}

.project-card__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Division chip: top-right corner of card image */
.project-card__division-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}

@media (hover: hover) {
  .project-card:hover .project-card__image img {
    transform: scale(1.05);
  }
}

.project-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, .05) 0%,
    rgba(0, 0, 0, .30) 45%,
    rgba(0, 0, 0, .81) 100%
  );
  transition: background var(--dur-base) var(--ease);
}

@media (hover: hover) {
  .project-card:hover .project-card__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, .10) 0%,
      rgba(0, 0, 0, .45) 45%,
      rgba(0, 0, 0, .88) 100%
    );
  }
}

.project-card::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--div-color, var(--color-cta));
  z-index: 3;
  opacity: 1;
  transition: opacity var(--dur-base) var(--ease);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card__content {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  right: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card__title {
  font-size: 1.75rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.project-card__division {
  font-family: var(--font-english);
}

.project-card__sep {
  opacity: .5;
  font-weight: 400;
}

.project-card__client {
  opacity: .85;
  font-size: 0.9375rem;
  font-weight: 400;
}

.projects-empty {
  text-align: center;
  padding-block: var(--space-16);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.projects-archive-cta {
  text-align: center;
}

/* ============================================================
   SINGLE PROJECT (sp-*)
   Pass 6 - Figma node 136:7559
   ============================================================ */

/* ---- SEC-1: HERO ---- */
/* Figma: 287px height, full-bleed, overlay rgba(0,0,0,.38)
   Title: Bold 40px centered vertically+horizontally
   Breadcrumb: absolute right:98px top:32px */

.sp-hero {
  position: relative;
  /* 287px content + 72px fixed nav = 359px total height */
  height: calc(287px + var(--nav-height, 72px));
  overflow: hidden;
  background: #1a1a1a;
}

.sp-hero__bg {
  position: absolute;
  inset: 0;
}

.sp-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sp-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .38);
  z-index: 1;
}

/* Breadcrumb: מיקום absolute ב-single-project hero */
.sp-hero .site-breadcrumb {
  position: absolute;
  top: calc(var(--nav-height, 72px) + 32px);
  right: 98px;
  z-index: 3;
}

/* Title: centered in hero */
.sp-hero__center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-hero__title {
  font-family: "Noto Sans Hebrew", var(--font-base);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-align: center;
  margin: 0;
  padding-inline: clamp(1rem, 5vw, 6rem);
  max-width: 900px;
  text-wrap: balance;
}

/* ---- SEC-1b: INFO CUBES ---- */
/* 4 קוביות מידע בין hero ל-share bar, מרוכזות ~1249px */

.sp-info-cubes {
  background: #f5f5f5;
  padding-block: 32px;
}

.sp-info-cubes__inner {
  max-width: 1249px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
}

.sp-cube {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  padding: 24px;
  width: 228px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  direction: rtl;
}

.sp-cube__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sp-cube__title {
  font-size: 24px;
  font-weight: 700;
  color: #242424;
  margin: 0;
  line-height: 1.2;
  text-align: right;
}

.sp-cube__value {
  font-size: 16px;
  font-weight: 300;
  color: #585858;
  margin: 0;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 1024px) {
  .sp-info-cubes__inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .sp-cube {
    width: calc(50% - 12px);
    flex-shrink: 1;
  }
}

@media (max-width: 480px) {
  .sp-cube {
    width: 100%;
  }
}

/* ---- SEC-2: SHARE BAR ---- */
/* Figma: 984px centered, border-bottom 1px #cecece, padding-bottom 24px
   flex justify-end RTL, gap 16px
   Label: Regular 20px/27 #2f323c
   Icons: 7 bubbles 30x30 border 0.72px #cdd5df bg white */

.sp-share-bar {
  background: #f5f5f5;
  padding-top: 24px;
  padding-bottom: 0;
}

.sp-share-bar__inner {
  max-width: 984px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  /* RTL: flex-start = items start from right side */
  justify-content: flex-start;
  direction: rtl;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #cecece;
}

.sp-share-bar__label {
  font-size: 20px;
  font-weight: 400;
  line-height: 27px;
  color: #2f323c;
  white-space: nowrap;
}

.sp-share-bar__icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 0.72px solid #cdd5df;
  text-decoration: none;
  color: #424242;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  flex-shrink: 0;
}

.sp-share-btn:hover {
  border-color: #242424;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transform: translateY(-1px);
}

.sp-share-btn:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}

.sp-share-btn svg {
  display: block;
  flex-shrink: 0;
}

/* ---- SEC-3: MAIN CONTENT ---- */
/* Figma: 848px centered, flex-col, align items-end (= right in RTL), gap 64px between blocks */

.sp-main {
  background: #f5f5f5;
  padding-block: 64px;
}

.sp-main__col {
  max-width: 848px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: stretch; /* blocks fill full width of the centered column */
  gap: 64px;
}

/* Content block: challenge / solution / results */
.sp-content-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* RTL flex-column: flex-start = RIGHT */
  gap: 8px; /* Figma: title-to-body gap 8px (challenge/results) */
}

/* Solution: title-to-body gap 4px */
.sp-content-block:nth-of-type(2) {
  gap: 4px;
}

/* Title: Bold 32px/48 #181d27 */
.sp-content-block__title {
  font-family: "Noto Sans Hebrew", var(--font-base);
  font-size: 32px;
  font-weight: 700;
  line-height: 48px;
  color: #181d27;
  margin: 0;
  text-align: right;
  align-self: flex-start; /* RTL flex-column: flex-start = RIGHT */
}

/* Body: Light 18px/28 #585858, max-width 789px */
.sp-content-block__body {
  font-size: 18px;
  font-weight: 300;
  line-height: 28px;
  color: #585858;
  max-width: 789px;
  width: 100%;
  text-align: right;
  margin-top: 0; /* gap handled by parent flex gap (8px) */
}

/* Gap between body and image: 24px */
.sp-content-block__figure {
  width: 100%;
  margin: 16px 0 0; /* 24px from body - the 8px gap already set */
  position: relative;
  overflow: hidden;
  border-radius: 32px;
}

.sp-content-block__figure img {
  display: block;
  width: 100%;
  height: 445px;
  object-fit: cover;
  border-radius: 32px;
}

/* Caption: Light 16px/30 #585858 */
.sp-content-block__caption {
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
  color: #585858;
  text-align: right;
  margin-top: 10px;
  display: block;
}

/* Video overlay on solution figure */
.sp-content-block__figure--video {
  cursor: pointer;
}

.sp-content-block__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
}

.sp-content-block__play {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}

.sp-content-block__play:hover {
  transform: scale(1.08);
}

/* Results list: disc, margin-inline-start 27px, Light 18px/28 #585858 */
.sp-content-block__list {
  list-style: disc;
  margin-inline-start: 27px;
  padding: 0;
  margin-top: 16px;
  width: 100%;
  max-width: 789px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-content-block__list li {
  font-size: 18px;
  font-weight: 300;
  line-height: 28px;
  color: #585858;
  text-align: right;
}

/* ---- SEC-4: TESTIMONIAL ---- */
/* Figma: full-bleed bg #242424, padding 64px top/bottom 98px sides
   flex-col items-center gap 32px
   Logo: 86x34
   Quote: Bold 24px/30 white text-center max-width 830px
   Author: Light 16px/34 white center */

.sp-testimonial {
  background: #242424;
  padding-block: 64px;
  padding-inline: var(--container-pad);
}

.sp-testimonial__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: var(--container-max);
  margin-inline: auto;
}

.sp-testimonial__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-testimonial__logo img {
  height: 88px; /* הוגדל ~37% (היה 64px) - גיא: קטן מדי */
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* white logo on dark bg */
}

.sp-testimonial__quote {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  color: #fff;
  text-align: center;
  max-width: 830px;
  margin: 0;
  quotes: none;
}

.sp-testimonial__author {
  font-size: 16px;
  font-weight: 300;
  line-height: 34px;
  color: #fff;
  text-align: center;
  margin: 0;
}

.sp-testimonial__role {
  font-weight: 300;
  color: rgba(255, 255, 255, .7);
}

/* ---- SEC-5: GALLERY ---- */
/* Figma: 1249px container, title right, CSS columns masonry
   3 cols ~294px each, gap 32px, radius 16px/32px */

.sp-gallery {
  background: #f5f5f5;
  padding-block: 64px;
}

.sp-gallery__wrap {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* Title: Bold 32px/40 #242424 aligned right */
.sp-gallery__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: #242424;
  text-align: right;
  margin: 0 0 32px;
}

/* CSS Columns masonry */
.sp-gallery__masonry {
  columns: 4;
  column-gap: 32px;
}

.sp-gallery__item {
  break-inside: avoid;
  margin: 0 0 32px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
}

.sp-gallery__item--r16 {
  border-radius: 16px;
}

.sp-gallery__item--r32 {
  border-radius: 32px;
}

.sp-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--dur-slow, .5s) var(--ease, ease);
}

@media (hover: hover) {
  .sp-gallery__item:hover img {
    transform: scale(1.04);
  }
}

.sp-gallery__item:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 2px;
}

/* Caption on hover */
.sp-gallery__item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(8, 8, 8, .8) 0%, transparent 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  transform: translateY(100%);
  transition: transform .25s;
  direction: rtl;
  text-align: right;
}

.sp-gallery__item:focus-within figcaption {
  transform: translateY(0);
}
@media (hover: hover) {
  .sp-gallery__item:hover figcaption {
    transform: translateY(0);
  }
}

/* ---- SEC-6: FAQ ---- */
/* Figma: 882px centered, flex-col gap 32px
   Title: Bold 32px/40 #242424 text-center
   Items: bg #fff border 1px #e2e2e2 radius 16px padding 10px 25px gap 20px
   Question: Regular 20px/35 #424242 right flex-1
   Icon: plus 24x24 left, becomes minus when open */

.sp-faq {
  background: #f5f5f5;
  padding-block: 64px;
}

.sp-faq__wrap {
  max-width: 882px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sp-faq__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: #242424;
  text-align: center;
  margin: 0;
}

.sp-faq__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sp-faq__item {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .25s ease;
}

/* Lime border on open item */
.sp-faq__item[data-open="true"] {
  border-color: #c3e85b;
}

.sp-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 25px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: right;
  direction: rtl;
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 35px;
  color: #424242;
  min-height: 60px;
}

.sp-faq__question:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: -2px;
  border-radius: 16px;
}

.sp-faq__question span:first-child {
  flex: 1;
  text-align: right;
}

.sp-faq__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: #242424;
}
/* גודל קנוני 16px לאייקוני אקורדיון בכל האתר (גיא 12.7) */
.sp-faq__icon svg { width: 16px; height: 16px; }

/* Plus/minus toggle */
.sp-faq__plus  { display: block; }
.sp-faq__minus { display: none; }

.sp-faq__item[data-open="true"] .sp-faq__plus  { display: none; }
.sp-faq__item[data-open="true"] .sp-faq__minus { display: block; }

/* Answer: grid-rows animation 0fr -> 1fr */
.sp-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.sp-faq__item[data-open="true"] .sp-faq__answer {
  grid-template-rows: 1fr;
}

.sp-faq__answer-inner {
  overflow: hidden;
  padding: 0 25px;
  font-size: 16px;
  line-height: 1.7;
  color: #585858;
  direction: rtl;
  text-align: right;
}

.sp-faq__item[data-open="true"] .sp-faq__answer-inner {
  padding-bottom: 20px;
}

.sp-faq__answer-inner p { margin: 0 0 8px; }
.sp-faq__answer-inner p:last-child { margin: 0; }

/* ---- SEC-7: MORE PROJECTS ---- */
/* Figma: 1244px container, gap 40px
   Title: Bold 40px/56 #242424 right
   Grid: flex gap 43px, 3 cards 386x443
   Card: photo cover, radius 40px top only, gradient overlay, title bottom-right */

.sp-related {
  background: #f5f5f5;
  padding-block: 64px;
}

.sp-related__wrap {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sp-related__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 56px;
  color: #242424;
  text-align: right;
  margin: 0;
}

/* Cards flex row, RTL: first child appears on right */
.sp-related__grid {
  display: flex;
  gap: 43px;
  flex-wrap: wrap;
}

.sp-related__card {
  flex: 1 1 calc((100% - 86px) / 3);
  min-width: 250px;
  max-width: 386px;
  height: 443px;
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background: #1a1a1a;
  cursor: pointer;
}

.sp-related__card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #fff;
}

.sp-related__thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.sp-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

@media (hover: hover) {
  .sp-related__card:hover .sp-related__thumb img {
    transform: scale(1.05);
  }
}

.sp-related__thumb--placeholder {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

/* Gradient overlay: transparent top -> rgba(0,0,0,.81) bottom */
.sp-related__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, .81) 100%
  );
  z-index: 1;
}

/* Body: absolute bottom-right */
.sp-related__card-body {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  right: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

/* Title: Regular 28px/37 white right-bottom */
.sp-related__card-title {
  font-size: 28px;
  font-weight: 400;
  line-height: 37px;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}

/* Meta: marker pin + client/location Bold 20px/33 white */
.sp-related__card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 33px;
  color: #fff;
  margin: 0;
  direction: rtl;
}

.sp-related__card-meta svg {
  flex-shrink: 0;
}

/* "All projects" button */
.sp-related__all {
  display: flex;
  justify-content: center;
}

.sp-related__all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 33px;
  border: 1px solid #242424;
  border-radius: 80px;
  font-size: 16px;
  font-weight: 400;
  color: #242424;
  text-decoration: none;
  background: transparent;
  transition: background .2s, color .2s;
}

.sp-related__all-btn:hover {
  background: #242424;
  color: #fff;
}

.sp-related__all-btn:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 3px;
}

/* ---- SEC-8: CTA ---- */
/* Figma: centered card bg #242424 radius 32px padding 44px/140px
   flex-col items-center gap 56px
   Title: ExtraBold 40px/61 white center max-width 943px
   Sub: Light 24px/35 white center max-width 712px
   Form: CF7 with lime submit */

.sp-cta {
  background: #f5f5f5;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.sp-cta__card {
  max-width: 1160px; /* card fits within 1440 with 140px padding each side */
  margin-inline: auto;
  background: #242424;
  border-radius: 32px;
  padding: 44px 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  text-align: center;
}

.sp-cta__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Title: ExtraBold 40px/61 white */
.sp-cta__title {
  font-family: "Noto Sans Hebrew", var(--font-base);
  font-size: 40px;
  font-weight: 800;
  line-height: 61px;
  color: #fff;
  margin: 0;
  max-width: 943px;
  text-wrap: balance;
}

/* Sub: Light 24px/35 */
.sp-cta__sub {
  font-size: 24px;
  font-weight: 300;
  line-height: 35px;
  color: rgba(255, 255, 255, .8);
  margin: 0;
  max-width: 712px;
}

.sp-cta__form-wrap {
  width: 100%;
  max-width: 760px;
}

/* White fields + lime submit inside dark card */
.sp-cta__card .hp-cta-form__field { box-shadow: none; }
/* כפתור שליחה ליים על הכרטיס הכהה (לא שחור - לא נראה על #242424).
   הסלקטור לא תלוי במיקום ה-submit (יצא מ-__fields בריאורגון הטופס). */
.sp-cta__card .hp-cta-form__submit {
  background: #c3e85b;
  color: #1a1714;
  border-color: #c3e85b;
  font-weight: 700;
  font-size: 14px;
}
.sp-cta__card .hp-cta-form__submit:hover {
  background: #acd148;
  border-color: #acd148;
}
.sp-cta__card .hp-cta-form__consent-wrap label { color: rgba(255,255,255,.7); }
.sp-cta__card .hp-cta-form__consent-wrap input[type="checkbox"] { accent-color: #c3e85b; }

/* ============================================================
   PROJECTS-ARCHIVE CTA (.pl-cta) — טופס ליד מוטמע בכרטיס הכהה.
   מחזר את מעטפת .sp-cta__card. שדות לבנים (ff-field), textarea,
   שורת רגל: הסכמה מימין + כפתור ליים משמאל (RTL: consent ראשון ב-DOM=ימין).
   ============================================================ */
/* בטיחות: הסקשن לעולם לא נשאר בלתי-נראה גם אם ה-reveal observer לא ירה. */
.pl-cta.reveal { opacity: 1; transform: none; }

.pl-cta__form-wrap { max-width: 100%; }

.pl-cta-form__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* שורת 3 שדות */
.pl-cta-form__fields {
  display: flex;
  gap: 16px;
  width: 100%;
}
.pl-cta-form__field {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 12px;
  transition: box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.pl-cta-form__field:focus-within {
  border-color: #c3e85b;
  box-shadow: 0 0 0 2px rgba(195, 232, 91, .35);
}
.pl-cta-form__field .wpcf7-form-control-wrap { display: block; }
.pl-cta-form__field input,
.pl-cta-form__field textarea {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-size: 1rem;
  font-family: var(--font-base);
  color: #242424;
  text-align: right;
  outline: none;
}
.pl-cta-form__field input {
  height: 54px;
  padding: 0 20px;
}
.pl-cta-form__field input::placeholder,
.pl-cta-form__field textarea::placeholder { color: transparent; }

/* textarea */
.pl-cta-form__field--message textarea {
  min-height: 150px;
  padding: 16px 20px;
  line-height: 1.55;
  resize: vertical;
}

/* floating label tuning על שדה 54px + textarea */
.pl-cta-form__field.ff-field {
  --ff-label-x: 20px;
  --ff-rest-size: 1rem;
  --ff-float-top: 8px;
  --ff-input-pad-top: 16px;
}
/* ב-textarea הכותרת יושבת למעלה (לא באמצע) - רמז שורה ראשונה */
.pl-cta-form__field--message .ff-label { top: 22px; }
.pl-cta-form__field--message.is-filled .ff-label,
.pl-cta-form__field--message:has(textarea:focus) .ff-label,
.pl-cta-form__field--message:has(textarea:not(:placeholder-shown)) .ff-label {
  top: var(--ff-float-top, 8px);
}
.pl-cta-form__field--message.is-filled textarea,
.pl-cta-form__field--message:has(textarea:focus) textarea,
.pl-cta-form__field--message:has(textarea:not(:placeholder-shown)) textarea {
  padding-top: 24px;
}

/* שורת רגל: הסכמה (ימין) + כפתור ליים (שמאל) */
.pl-cta-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pl-cta-form__consent {
  flex: 1;
  min-width: 240px;
}
.pl-cta-form__consent .wpcf7-form-control-wrap,
.pl-cta-form__consent .wpcf7-acceptance,
.pl-cta-form__consent .wpcf7-list-item { display: inline; margin: 0; }
.pl-cta-form__consent label {
  display: inline;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .7);
  line-height: 1.5;
  cursor: pointer;
}
.pl-cta-form__consent .wpcf7-list-item-label { display: inline; }
.pl-cta-form__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-inline-start: 8px;
  vertical-align: -3px;
  accent-color: #c3e85b;
  cursor: pointer;
}
.pl-cta-form__consent a {
  color: #c3e85b;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pl-cta-form__consent a:hover { color: #d4f279; }

/* כפתור ליים "צרו איתי קשר" */
.pl-cta-form__submit {
  flex-shrink: 0;
  min-width: 200px;
  height: 52px;
  padding: 0 40px;
  border-radius: 80px;
  background: #c3e85b;
  color: #1a1714;
  border: 1px solid #c3e85b;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.pl-cta-form__submit:hover {
  background: #acd148;
  border-color: #acd148;
}
.pl-cta-form__submit:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* CF7 feedback */
.pl-cta-form__form .wpcf7-response-output {
  margin: 4px 0 0;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  text-align: center;
  color: #fff;
}
.pl-cta-form__form.sent .wpcf7-response-output {
  border-color: rgba(195, 232, 91, .5);
  background: rgba(195, 232, 91, .14);
  color: #d4f279;
}
.pl-cta-form__form.invalid .wpcf7-response-output,
.pl-cta-form__form.failed .wpcf7-response-output {
  border-color: rgba(230, 140, 140, .5);
  background: rgba(230, 140, 140, .12);
  color: #f2b6b6;
}
.pl-cta-form__field .wpcf7-not-valid-tip {
  position: absolute;
  top: calc(100% + 4px);
  right: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #f2b6b6;
  text-align: right;
  pointer-events: none;
}
.pl-cta-form__field:has(.wpcf7-not-valid) {
  border-color: #e69a9a;
  box-shadow: 0 0 0 2px rgba(230, 140, 140, .25);
}
.pl-cta-form__form .wpcf7-spinner { margin-inline-start: 8px; }

/* ============================================================
   GALLERY LIGHTBOX (dialog)
   Centered overlay: dialog is fixed, centered in viewport via margin:auto.
   Image fills up to 90vw x 85vh with object-fit:contain.
   ============================================================ */
/* dialog סגור מוסתר - כלל author גובר על display:flex כש-[open] לא קיים
   (בלי זה ה-dialog מוצג ריק באמצע העמוד, כי author display:flex מנצח את ה-UA) */
dialog.gallery-lightbox:not([open]) { display: none; }

.gallery-lightbox {
  /* Reset browser dialog defaults */
  padding: 0;
  border: none;
  background: transparent;
  /* Position: fixed + margin:auto = centered in viewport */
  position: fixed;
  inset: 0;
  margin: auto;
  /* Size: constrained to 90% of viewport */
  width: 90vw;
  max-width: 980px;
  max-height: 90vh;
  /* Layout: column flex so img-wrap grows and caption sits below */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
  z-index: 9999;
}

/* Dark inner background - on inner wrapper not dialog, so border-radius works */
.gallery-lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(6px);
}

.gallery-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
  flex-shrink: 0;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, .25);
}

.gallery-lightbox-close:focus-visible {
  outline: 2px solid #c3e85b;
  outline-offset: 2px;
}

.gallery-lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 52px 20px 12px; /* top: room for close btn */
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.gallery-lightbox-caption {
  flex-shrink: 0;
  padding: 10px 20px 16px;
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  direction: rtl;
  width: 100%;
}

.gallery-lightbox-caption[hidden] { display: none; }

/* Nav arrows */
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
}

.gallery-lightbox-prev { right: 14px; }
.gallery-lightbox-next { left: 14px; }

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(255, 255, 255, .25);
}

.gallery-lightbox-prev[hidden],
.gallery-lightbox-next[hidden] { display: none; }

/* ============================================================
   RESPONSIVE — archive + single (sp-*)
   ============================================================ */

/* ---- 1024px ---- */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-hero .site-breadcrumb {
    right: 40px;
  }

  .sp-cta__card {
    padding: 44px 60px;
  }

  .sp-cta__title {
    font-size: 32px;
    line-height: 1.4;
  }

  .sp-cta__sub {
    font-size: 20px;
  }

  .sp-related__card {
    max-width: none;
  }

  .sp-gallery__masonry {
    columns: 2;
  }
}

/* ---- 768px ---- */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* Hero */
  .sp-hero {
    height: 220px;
  }

  .sp-hero__title {
    font-size: 28px;
  }

  .sp-hero .site-breadcrumb {
    top: 16px;
    right: 20px;
    font-size: 12px;
    gap: 6px;
  }

  .sp-hero .site-breadcrumb__dot {
    width: 4px;
    height: 4px;
  }

  /* Share bar */
  .sp-share-bar__label {
    font-size: 16px;
  }

  /* P2-2: מטרת מגע 44px לאייקוני שיתוף (ויזואל נשאר 30px) */
  .sp-share-bar__icons {
    gap: 6px;
  }

  .sp-share-btn {
    position: relative;
  }

  .sp-share-btn::before {
    content: "";
    position: absolute;
    inset: -7px;
  }

  /* Main content */
  .sp-main {
    padding-block: 40px;
  }

  .sp-main__col {
    gap: 40px;
  }

  .sp-content-block__title {
    font-size: 26px;
    line-height: 1.4;
  }

  .sp-content-block__body {
    font-size: 16px;
    line-height: 1.6;
  }

  .sp-content-block__figure img {
    height: 260px;
  }

  /* Testimonial */
  .sp-testimonial {
    padding-inline: 24px;
    padding-block: 48px;
  }

  .sp-testimonial__quote {
    font-size: 20px;
    line-height: 28px;
  }

  /* Gallery */
  .sp-gallery__masonry {
    columns: 2;
  }

  /* FAQ */
  .sp-faq__title {
    font-size: 26px;
  }

  .sp-faq__question {
    font-size: 17px;
  }

  /* Related */
  .sp-related__grid {
    flex-direction: column;
    align-items: center;
  }

  .sp-related__card {
    width: 100%;
    max-width: 440px;
    flex: none;
  }

  .sp-related__title {
    font-size: 30px;
  }

  /* CTA */
  .sp-cta__card {
    padding: 32px 24px;
    gap: 32px;
  }

  .sp-cta__title {
    font-size: 26px;
    line-height: 1.3;
  }

  .sp-cta__sub {
    font-size: 17px;
    line-height: 1.6;
  }

  /* projects CTA form: fields stack, foot wraps consent->button */
  .pl-cta-form__fields { flex-direction: column; gap: 12px; }
  .pl-cta-form__foot { flex-direction: column; align-items: stretch; gap: 16px; }
  .pl-cta-form__consent { min-width: 0; }
  .pl-cta-form__submit { width: 100%; }
}

/* ---- 480px ---- */
@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-filter {
    gap: var(--space-2);
  }

  .projects-filter-btn {
    font-size: 0.8125rem;
    padding: 0.4rem 1rem;
  }

  .sp-hero {
    height: 180px;
  }

  .sp-hero__title {
    font-size: 22px;
  }

  .sp-hero .site-breadcrumb {
    display: none; /* too cramped on mobile */
  }

  .sp-share-bar__inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .sp-gallery__masonry {
    columns: 1;
  }

  .sp-related__card {
    height: 320px;
    border-radius: 24px;
  }

  .sp-related__card-title {
    font-size: 22px;
  }

  .sp-related__card-meta {
    font-size: 16px;
  }
}
