/* svc.css · עמודי שירות וקשר של צ'רפוס, גרסה 2 (18.11.2026).
 * נטען יחד עם home.css (מונו, כותרות, מסלול, פרויקטים). כאן: הירו עמוד, מסגרת שרטוט, שורות מפרט, אריחים.
 */

.x-sec { padding-block: var(--s-section); }
.x-bg-a { background: var(--bg); }
.x-bg-b { background: var(--bg-2); }
.x-bg-c { background: var(--card); }

/* ---------- הירו עמוד ---------- */
.x-phero { position: relative; overflow: hidden; isolation: isolate; background: var(--stage-bg); color: var(--hero-ink); padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.x-phero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 4rem 4rem; -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 75%); }
.x-phero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.x-phero-text { min-width: 0; }
.x-phero h1 { color: var(--hero-ink); font-size: var(--fs-display); line-height: 1.12; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.x-phero .x-lead { max-width: 36rem; }

/* מסגרת שרטוט: סימני פינה, כיתוב מונו, קו סריקה שפותח את התמונה פעם אחת בטעינה */
.x-fig { margin: 0; position: relative; min-width: 0; }
.x-fig::before, .x-fig::after { content: ''; position: absolute; width: 1.1rem; height: 1.1rem; border: 2px solid var(--brand); pointer-events: none; z-index: 1; }
.x-fig::before { top: -.6rem; right: -.6rem; border-left: 0; border-bottom: 0; }
.x-fig::after { bottom: -.6rem; left: -.6rem; border-right: 0; border-top: 0; }
.x-fig-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--grid-line); background: var(--ink); }
.x-fig-media img { width: 100%; height: 100%; object-fit: cover; }
.x-fig-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--brand); opacity: 0; pointer-events: none;
  box-shadow: 0 0 1rem .25rem var(--scan), 0 0 3rem .5rem var(--scan); }
.x-fig figcaption { color: var(--hero-soft); margin-top: .75rem; }

@media (max-width: 860px) {
  .x-phero-grid { grid-template-columns: 1fr; }
  .x-fig { order: -1; }
}

/* ---------- שלבים בעמוד שירות: 4 בשורה ברוחב, 2 בטאבלט ---------- */
.x-track-svc { gap: var(--s-block) var(--s-block); }
.x-track-svc b { margin-bottom: var(--s-pair); }
.x-track-svc p { font-size: var(--fs-body); line-height: 1.7; }
@media (max-width: 1100px) { .x-track-svc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .x-track-svc { grid-template-columns: 1fr; } }

/* ---------- שורות מפרט ---------- */
.x-spec { display: grid; gap: 0 var(--s-block); border-bottom: 1px solid var(--hair); }
.x-spec-3 { grid-template-columns: repeat(3, 1fr); }
.x-spec-2 { grid-template-columns: repeat(2, 1fr); }
.x-spec-item { position: relative; padding-block: var(--s-block); border-top: 1px solid var(--hair); }
.x-spec-item::before { content: ''; position: absolute; top: -1px; inset-inline-start: 0; width: 2.5rem; height: 2px; background: var(--brand); }
.x-spec-item .x-code { display: block; color: var(--brand-ink); margin-bottom: var(--s-pair); }
.x-spec-item h3 { font-size: var(--fs-h3); margin: 0 0 var(--s-pair); }
.x-spec-item p { color: var(--ink-soft); margin: 0; max-width: 46ch; }
.x-spec-note { margin-top: var(--s-block); color: var(--ink-soft); max-width: 66ch; padding-inline-start: var(--s-text); border-inline-start: 2px solid var(--brand); }
@media (max-width: 860px) { .x-spec-3, .x-spec-2 { grid-template-columns: 1fr; } }

/* ---------- אריחי תמונה ---------- */
.x-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-block); }
.x-tile-media { overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; margin-bottom: var(--s-text); background: var(--card); }
.x-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.x-tile:hover .x-tile-media img { transform: scale(1.04); }
.x-tile .x-code { display: block; color: var(--brand-ink); margin-bottom: var(--s-pair); }
.x-tile h3 { font-size: var(--fs-h3); margin: 0 0 var(--s-pair); }
.x-tile p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .x-tiles { grid-template-columns: 1fr; } }

/* פרויקט בעמוד שירות: רשימת תבליטים בגוף */
.x-proj-body ul { color: var(--ink-soft); padding-inline-start: 1.2rem; margin: var(--s-text) 0 0; }
.x-proj-body li { margin-bottom: .35rem; }
.x-proj-body li::marker { color: var(--brand-ink); }

/* ---------- קשר ---------- */
.x-contact-lines { list-style: none; padding: 0; margin: var(--s-block) 0 0; display: grid; gap: 0; max-width: 30rem; }
.x-contact-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-text); padding-block: .85rem; border-top: 1px solid var(--grid-line); }
.x-contact-lines li:last-child { border-bottom: 1px solid var(--grid-line); }
.x-contact-lines .mono { color: var(--hero-soft); }
.x-contact-lines a { color: var(--hero-ink); text-decoration: none; font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.x-contact-lines a:hover { color: var(--brand); }

/* ---------- אנימציה: רק בטעינה, לא תלויה בגלילה ---------- */
@media (prefers-reduced-motion: no-preference) {
  .x-anim .x-phero-text > * { animation: x-up .9s cubic-bezier(.2, .7, .2, 1) both; }
  .x-anim .x-phero-text > *:nth-child(2) { animation-delay: .12s; }
  .x-anim .x-phero-text > *:nth-child(3) { animation-delay: .24s; }
  .x-anim .x-phero-text > *:nth-child(4) { animation-delay: .36s; }
  .x-anim .x-phero::before { animation: x-grid 2s ease-out .2s both; }
  .x-anim .x-fig-media img { animation: x-reveal 1.6s cubic-bezier(.65, 0, .25, 1) .35s both; }
  .x-anim .x-fig-scan { animation: x-sweep 1.6s cubic-bezier(.65, 0, .25, 1) .35s both; }
  .x-anim .x-fig::before, .x-anim .x-fig::after { animation: x-fade 1s ease 1.6s both; }
  @keyframes x-reveal { from { clip-path: inset(0 0 0 100%); transform: scale(1.06); } to { clip-path: inset(0 0 0 0); transform: none; } }
  @keyframes x-sweep { 0% { left: 100%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 0; opacity: 0; } }
}

/* פס הכניסה המהירה (חובה בעמוד קמפיין): המשך כהה של ההירו, קו שרטוט עליון */
.x-phero + .quick-bar { background: var(--band); border-top: 1px solid var(--grid-line); }
.x-phero + .quick-bar p { color: var(--hero-ink); font-weight: 500; }

/* 19.11.2026: בלי תוויות מעל כותרות (עידו). פרוזה בעמודה אחת, שם הלקוח מתחת לכותרת הפרויקט */
.x-prose .x-intro-text { max-width: 50rem; }
