/* ===== פריסת האתר =====
   הדפים עוקבים אחרי עיצוב האתר ב-Artifact "Urbanit Website" (design/artifact/ הוא העותק שסונכרן).
   הצבעים, הגופנים והמרווחים באים ממערכת העיצוב של אורבנית: tokens.css (משתנים) ו-bundle.css
   (רכיבי ol-). base.css מוסיף את סולם הדף. כאן רק מה שייחודי לאתר. */

/* ===== לוגו: קובץ ה-SVG של הלוגו מה-Artifact (assets/logo.svg, וגרסה כהה לתחתית) ===== */
.site-logo { display: inline-flex; line-height: 0; text-decoration: none; }
.site-logo img { display: block; width: auto; height: 52px; }
.site-logo--footer img { height: 56px; }

/* ===== דלג לתוכן: מוסתר עד שמגיעים אליו במקלדת ===== */
.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: var(--space-3);
  z-index: calc(var(--z-sticky-nav) + 1);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--action);
  color: var(--on-action);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }
main:focus { outline: none; }

/* ===== כותרת עליונה ===== */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky-nav); }

/* מעל הטלפון הכותרת גדולה מברירת המחדל של ol-nav, כמו ב-Artifact: לוגו 70px, קישורים 21px.
   בטלפון נשארת הפריסה הקומפקטית שלמטה. */
@media (min-width: 40.0625rem) {
  html { scroll-padding-top: calc(var(--space-10) + var(--space-2)); }
  .site-header .ol-nav__inner { padding-block: 12px; }
  .site-header .site-logo img { height: 70px; }
  .site-header .ol-nav__links { gap: 10px 40px; font-size: 21px; }
  .site-header .ol-nav__link { padding-block: var(--space-2); }
  .site-header .ol-btn { min-height: 48px; padding-inline: 32px; font-size: 21px; }
}

.ol-nav__link { transition: border-color var(--dur-short) var(--ease-out); }
.ol-nav__link:hover { border-bottom-color: var(--mauve); }
.ol-nav__link:active { color: var(--ink-700); }

/* ===== כפתורים: המצבים שה-bundle לא מגדיר ===== */
.ol-btn { white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.ol-btn:active { transform: translateY(1px); }
.ol-btn--on-band:hover { background: var(--tint-cement); }

/* קישור "לכל ה..." ליד כותרת מקטע */
.more-link { font-weight: 600; text-underline-offset: 6px; }
.more-link:hover { color: var(--accent-text); }
.ol-band .more-link { color: var(--on-band); }
.ol-band .more-link:hover { color: var(--on-band-accent); }

/* ===== מקטעים ===== */
.section { padding-block: var(--space-11); }
.section--band { padding-block: 112px; }
.section__inner { display: flex; flex-direction: column; gap: var(--space-8); }

/* ===== פתיח של דף: הספירלה של הלוגו, גדולה ודקה, מאחורי הכותרת ===== */
.page-hero { position: relative; overflow: hidden; }
.page-hero__spiral {
  position: absolute;
  left: -160px;
  top: -200px;
  width: 560px;
  height: 560px;
  fill: none;
  stroke: var(--ink-900);
  stroke-width: 0.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-9);
  align-items: end;
  justify-content: space-between;
  padding-block: var(--space-10) 72px;
}
.page-hero__titles { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.page-hero__aside { flex: 0 1 420px; color: var(--ink-muted); }
.page-hero .ol-h1, .hero .ol-h1 { max-width: none; }

/* ===== דף הבית: פתיח ===== */
.hero .page-hero__spiral { left: -140px; top: -120px; width: 720px; height: 720px; }
.hero__inner { position: relative; padding-block: 112px var(--space-12); }
.hero__content { max-width: 720px; display: flex; flex-direction: column; gap: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: 6px; }
.hero .ol-quote { margin-top: var(--space-4); }

/* למי אנחנו עובדים */
.audience { background: var(--surface-sand); border-block: 1px solid var(--line); }
.audience__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  justify-content: space-between;
  padding-block: 28px;
  font-size: 24px;
}
.audience__dot { color: var(--cement); }

/* הגישה שלנו */
.approach { gap: 56px; }
.approach__text { max-width: 440px; color: var(--ink-muted); }

/* מה אנחנו עושים: כרטיסי השירות על רצועת הדיו */
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.ol-service { transition: background-color var(--dur-short) var(--ease-out); }

/* שותפים, ברצועה בהירה */
.logos-strip { background: var(--surface-sand); padding-block: var(--space-10); }
.logos-strip .section__inner { gap: 40px; }
.logos-strip__head { display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: space-between; align-items: end; }
.logos-strip__head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; color: var(--heading); }
.logos-strip .ol-logos { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* לוגואים בצבעים שלהם; multiply מעלים את הרקע הלבן של קובצי ה-JPG */
.ol-logo-tile img { mix-blend-mode: multiply; }

/* יש לכם פרויקט? */
.closing { display: flex; flex-wrap: wrap; gap: var(--space-8) 80px; align-items: center; justify-content: space-between; }
.closing__head { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.closing__head h2 { font: 600 clamp(44px, 6vw, 80px)/1.05 var(--font-display); color: var(--heading); max-width: none; }
.closing .ol-contact { flex: 0 1 420px; }

/* שורות יצירת הקשר: קו תחתון במוב במעבר עכבר */
.ol-contact__row > span:first-child { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.ol-contact__row:hover > span:first-child { text-decoration-color: var(--mauve); }
.ol-contact__row:active > span:first-child { color: var(--ink-700); }

/* ===== אודות ===== */
.intro { display: flex; flex-direction: column; gap: var(--space-6); max-width: 820px; padding-bottom: var(--space-11); }
.intro__lead { font: 500 30px/1.35 var(--font-body); color: var(--ink); }
.intro__body { color: var(--ink-muted); }
.intro__sign { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-6); border-top: 1px solid var(--cement); }
.intro__name { font-weight: 600; font-size: 24px; }
.intro__role { font-size: 16px; font-weight: 600; color: var(--accent-text); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px var(--space-7); }
.principles > li { display: flex; flex-direction: column; gap: 10px; padding-top: var(--space-6); border-top: 1px solid var(--on-band-line); }
.principles h3 { font-size: 24px; line-height: 1.25; color: var(--on-band); }
.principles p { font-size: 17px; color: var(--on-band-muted); }


/* ===== שירותים ===== */
.service-index { flex: 0 1 360px; display: flex; flex-direction: column; font-size: 18px; font-weight: 600; }
.service-index a { padding-block: var(--space-3); border-top: 1px solid var(--line); text-decoration: none; }
.service-index a:last-child { border-bottom: 1px solid var(--line); }
.service-index a:hover { color: var(--accent-text); }
.service-index span { color: var(--mauve); }

.service-detail__row {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-block: var(--space-9);
  border-top: 1px solid var(--line);
}
.service-detail:first-of-type .service-detail__row { border-top-color: var(--line-strong); }
.service-detail:last-of-type .service-detail__row { padding-bottom: var(--space-11); }
/* תמונה ליד טקסט, לסירוגין; בטלפון הטקסט תמיד ראשון */
.service-detail--flip .service-detail__row { flex-wrap: wrap-reverse; }
.service-detail__text { flex: 1 1 460px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: var(--space-5); }
.service-detail__num { font: 300 64px/1 var(--font-numeric); color: var(--mauve); }
.service-detail__text h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; color: var(--heading); }
.service-detail__text p { color: var(--ink-muted); }
.service-detail__text ul { display: flex; flex-direction: column; gap: var(--space-2); padding-inline-start: var(--space-5); list-style: disc; }
.service-detail__text li::marker { color: var(--mauve); }
.service-detail__media { flex: 1 1 420px; min-width: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-xl); }

/* פרויקטים קשורים, מתחת לתחום: כרטיס עם טקסט ותמונות לפני/אחרי */
.service-projects { display: flex; flex-direction: column; gap: var(--space-6); padding-bottom: 72px; }
.project-case {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
  padding: 40px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.project-case__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.project-case__client { font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.project-case h3 { margin: 0; font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--heading); }
.project-case__goal { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4) var(--space-5); background: var(--tint-mauve); border-radius: var(--radius-md); }
.project-case__goal span { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent-text); }
.project-case__goal p { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--heading); }
.project-case__text > p { margin: 0; color: var(--ink-muted); }
.project-case__photos { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); align-content: start; }
.project-case__photos .ol-media { position: relative; margin: 0; border-radius: 18px; }
.project-case__photos figcaption {
  position: absolute;
  top: var(--space-3);
  inset-inline-start: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.project-case__photos figcaption.is-after { background: var(--ink-900); color: #FFFFFF; }

/* ===== רצועת הנעה לפעולה בסוף דף ===== */
.ol-cta__titles { display: flex; flex-direction: column; gap: 10px; }
.ol-band .ol-cta p { color: var(--on-band-muted); }
.ol-band .ol-cta h2 { color: var(--on-band); }

/* ===== שותפים ===== */
.clients { padding-bottom: var(--space-11); }
.clients__group { display: flex; flex-direction: column; gap: var(--space-5); }
.clients__group h2 { font-size: 32px; line-height: 1.25; color: var(--heading); padding-top: var(--space-5); border-top: 1px solid var(--line-strong); max-width: none; }
.clients .ol-logos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.clients .ol-logo-tile { height: 128px; font-size: 17px; }

/* ===== צור קשר ===== */
.contact-page__inner { position: relative; display: flex; flex-wrap: wrap; gap: var(--space-9); align-items: end; padding-block: var(--space-10) var(--space-11); }
.contact-page__head { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
/* הרקע מסתיר את הספירלה מאחורי השורות */
.contact-page .ol-contact { flex: 1 1 420px; background: var(--surface); }

/* ===== הצהרת נגישות: מסמך בעמודה אחת ===== */
.doc__inner { display: grid; gap: var(--space-9); }
.doc__inner > * { max-width: 46rem; }
.doc__head { display: flex; flex-direction: column; gap: var(--space-5); }
.doc__part { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.doc__part p { color: var(--ink-muted); }
.doc__list { display: flex; flex-direction: column; gap: var(--space-3); padding-inline-start: var(--space-6); list-style: disc; color: var(--ink-muted); }
.doc__list li::marker { color: var(--accent-text); }
.doc__contact { margin-top: var(--space-3); }
.doc__date { font-size: var(--text-sm); color: var(--ink-muted); }

/* ===== תחתית ===== */
.ol-footer__links a:hover { text-decoration: underline; }
.ol-footer__links a:active { color: var(--on-footer-muted); }
/* explicit inset above the legal row: the shorthand `padding-block` in bundle.css is not read by every checker */
.ol-footer__legal { padding-top: var(--space-6); padding-bottom: var(--space-7); }
.ol-footer__legal-links { display: flex; gap: var(--space-5); }

/* ===== מסכים בינוניים ===== */
@media (max-width: 60rem) {
  .hero__inner { padding-block: var(--space-10); }
  .section { padding-block: var(--space-10); }
  .section--band { padding-block: var(--space-10); }
}

/* ===== טלפון ===== */
@media (max-width: 40rem) {
  /* בטלפון הכותרת נערמת לכמה שורות; דביקה היא הייתה מכסה רבע מסך */
  .site-header { position: static; }
  html { scroll-padding-top: var(--space-4); }

  /* כותרת בשתי שורות: הלוגו ו"צרו קשר" למעלה, ארבעת הקישורים מתחת לכל הרוחב */
  .ol-nav__inner { position: relative; gap: var(--space-3); padding-block: var(--space-4) var(--space-2); }
  .ol-nav__links { width: 100%; justify-content: space-between; gap: var(--space-2); }
  .ol-nav__link { padding-block: 10px; }
  .ol-nav__links > .ol-btn {
    position: absolute;
    top: calc(var(--space-4) + 6px);
    inset-inline-end: max(var(--space-4), min(var(--space-7), 4vw));
    min-height: 40px;
    padding-inline: var(--space-5);
    font-size: 16px;
  }

  /* כותרות פתיח קטנות יותר, כדי שמילה אחת לא תישאר לבד בשורה */
  .ol-h1 { font-size: clamp(32px, 9.4vw, 44px); line-height: 1.1; }
  .closing__head h2 { font-size: clamp(32px, 9.4vw, 44px); }
  .ol-lead { font-size: 18px; }

  /* הספירלה קטנה לפינה, כדי שלא תעבור מאחורי הטקסט */
  .page-hero__spiral, .hero .page-hero__spiral { width: 300px; height: 300px; left: -150px; top: -150px; }
  .hero__inner, .page-hero__inner, .contact-page__inner { padding-block: var(--space-9); }
  .section, .section--band, .logos-strip { padding-block: var(--space-9); }
  .intro, .clients { padding-bottom: var(--space-9); }
  .intro__lead { font-size: 24px; }
  /* למי אנחנו עובדים: שתיים בשורה, בלי הנקודות שנשברו לקצוות */
  .audience__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); padding-block: var(--space-6); font-size: 18px; }
  .audience__dot { display: none; }

  /* לוגואים: שניים בשורה במקום אחד */
  .logos-strip .ol-logos, .clients .ol-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .ol-logo-tile, .clients .ol-logo-tile { height: 96px; padding: var(--space-3); }
  .ol-contact__row { font-size: 20px; }
  .ol-cta { padding-block: var(--space-9); }
  .service-projects { padding-bottom: var(--space-9); }
  .project-case { padding: var(--space-5); gap: var(--space-6); }
}
