/* ============================================================
   בורוביץ מזרחי — Inner / sub-page styles
   Builds on styles.css (shares tokens, nav, footer, buttons)
   ============================================================ */

/* ---------- Sub-page hero ---------- */
.subpage-hero {
  position: relative; min-height: clamp(58vh, 70vh, 640px);
  display: flex; align-items: center; overflow: hidden; background: var(--navy-2);
}
.subpage-hero .sp-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  animation: kenburns 12s ease-in-out forwards;
}
.subpage-hero .sp-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(10,18,33,.94) 0%, rgba(10,18,33,.5) 50%, rgba(10,18,33,.6) 100%),
    linear-gradient(to left, rgba(10,18,33,.55), rgba(10,18,33,.12));
}
.subpage-hero .sp-content {
  position: relative; z-index: 3; width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding-inline: var(--pad); padding-top: 5rem;
}
.subpage-hero .eyebrow { color: var(--gold-2); margin-bottom: 1.3rem; }
.subpage-hero .eyebrow::before { background: var(--gold-2); }
.sp-title {
  font-family: var(--serif); color: #fff; font-weight: 800;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.08; letter-spacing: -.025em;
  max-width: 18ch; margin-bottom: 1.4rem;
}
.sp-title .gold { color: var(--gold-2); }
.sp-sub { color: rgba(255,255,255,.85); font-size: clamp(1.02rem, 1.6vw, 1.25rem); max-width: 56ch; margin-bottom: 2.2rem; font-weight: 300; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.75); transition: color .3s; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .sep { color: rgba(255,255,255,.35); }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--ink); color: #fff; }
.stat-strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-strip .stat { padding: clamp(1.8rem,3.5vw,2.8rem) clamp(1.2rem,3vw,2.4rem); border-inline-start: 1px solid var(--line-2); text-align: center; }
.stat-strip .stat:first-child { border-inline-start: none; }
.stat-strip .stat .num { font-family: var(--serif); font-size: clamp(2.4rem,4vw,3.2rem); font-weight: 800; color: var(--gold-2); line-height: 1; }
.stat-strip .stat .label { font-size: .92rem; color: rgba(255,255,255,.7); margin-top: .5rem; }

/* ---------- Prose / content block ---------- */
.content-block { display: grid; grid-template-columns: 1fr; gap: 1.3rem; max-width: 70ch; }
.content-block.two-col { grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); max-width: none; align-items: start; }
.prose p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.02rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose h3 { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); margin: 1.4rem 0 .8rem; }

/* highlight callout */
.callout {
  background: var(--cream); border-inline-start: 3px solid var(--gold);
  padding: 1.3rem 1.5rem; border-radius: 4px; color: var(--ink);
}
.callout strong { color: var(--navy); }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1rem,2vw,1.6rem); margin-top: 1rem; }
.feature-card {
  background: #fff; border: 1px solid var(--line); padding: clamp(1.5rem,2.5vw,2rem);
  border-bottom: 3px solid var(--gold); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -42px rgba(19,31,51,.5); }
.feature-card .fc-ico { color: var(--navy); margin-bottom: .9rem; }
.feature-card .fc-ico svg { width: 30px; height: 30px; }
.feature-card h3 { font-family: var(--serif); font-size: 1.18rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.feature-card p { font-size: .92rem; color: var(--muted); line-height: 1.65; }

/* ---------- Steps / process ---------- */
.steps { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.step {
  display: flex; align-items: flex-start; gap: 1.3rem;
  background: #fff; border: 1px solid var(--line); border-inline-end: 3px solid var(--navy);
  padding: clamp(1.2rem,2vw,1.6rem) clamp(1.3rem,2.2vw,1.8rem); transition: border-color .4s;
}
.step:hover { border-inline-end-color: var(--gold); }
.step .step-num {
  min-width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold-2);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
}
.step h4 { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin-bottom: .3rem; }
.step p { font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* ---------- Checklist (who is this for) ---------- */
.check-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: .8rem 1.6rem; margin-top: 1.2rem; }
.check-list li { position: relative; padding-inline-start: 2rem; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.check-list li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: #fff; background: var(--gold); width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.5rem; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.4rem; font-family: var(--serif);
  font-weight: 700; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; font-weight: 400; transition: transform .3s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.2rem; color: var(--muted); font-size: .96rem; line-height: 1.7; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy), var(--ink)); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-end: 0; width: 72px; height: 3px; background: var(--gold);
}
.cta-band .cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.cta-band .cta-copy .eyebrow { color: var(--gold-2); margin-bottom: 1.1rem; }
.cta-band .cta-copy .eyebrow::before { background: var(--gold-2); }
.cta-band .cta-copy h2 { font-family: var(--serif); font-size: clamp(1.8rem,3.4vw,2.8rem); font-weight: 800; line-height: 1.12; margin-bottom: 1rem; }
.cta-band .cta-copy p { color: rgba(255,255,255,.78); font-weight: 300; max-width: 44ch; }
.cta-band .cta-form { background: rgba(255,255,255,.05); border: 1px solid var(--line-2); padding: clamp(1.6rem,3vw,2.4rem); border-radius: 6px; }
.cta-band .cta-form h3 { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: .3rem; }
.cta-band .cta-form > p { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 1.3rem; }
.cta-band .form-group label { color: rgba(255,255,255,.85); }
.cta-band .form-group input, .cta-band .form-group select, .cta-band .form-group textarea {
  background: rgba(255,255,255,.08); border-color: var(--line-2); color: #fff;
}
.cta-band .form-group input::placeholder, .cta-band .form-group textarea::placeholder { color: rgba(255,255,255,.45); }
.cta-band .form-group input:focus, .cta-band .form-group select:focus, .cta-band .form-group textarea:focus {
  background: rgba(255,255,255,.12); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,62,.25);
}
.cta-band .form-group select option { color: var(--ink); }

/* ---------- Related services ---------- */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; margin-top: 1.5rem; }
.related a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line); padding: 1.1rem 1.3rem; font-weight: 600; color: var(--ink);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.related a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.related a .arr { color: var(--gold); transition: transform .4s var(--ease); }
.related a:hover .arr { transform: translateX(-5px); color: var(--gold-2); }

/* ---------- Careers: job cards ---------- */
.jobs { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.5rem; }
.job-card {
  background: #fff; border: 1px solid var(--line); padding: clamp(1.5rem,3vw,2.2rem);
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.job-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -44px rgba(19,31,51,.5); border-color: transparent; }
.job-card .job-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.job-card .tag { font-size: .74rem; letter-spacing: .1em; color: var(--gold); border: 1px solid var(--line); padding: .25rem .7rem; border-radius: 2px; }
.job-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.job-card p { color: var(--muted); font-size: .95rem; max-width: 60ch; }
.job-card .job-cta { white-space: nowrap; }
/* Filled / closed positions — shown for context only, not applicable */
.job-card.job-filled { opacity: .62; filter: grayscale(.45); }
.job-card.job-filled:hover { transform: none; box-shadow: none; border-color: var(--line); }
.job-card .tag-filled { color: var(--muted); border-color: var(--line); background: #f3f4f6; }
.job-card .job-status { white-space: nowrap; font-size: .78rem; letter-spacing: .12em; color: var(--muted); border: 1px solid var(--line); padding: .4rem 1rem; border-radius: 2px; background: #f3f4f6; align-self: center; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: clamp(1rem,2vw,1.6rem); margin-top: 1rem; }
.value-card { padding: clamp(1.4rem,2.5vw,1.9rem); border: 1px solid var(--line); background: #fff; }
.value-card .v-num { font-family: var(--serif); color: var(--gold); font-size: 1rem; display: block; margin-bottom: .6rem; }
.value-card h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-bottom: .5rem; }
.value-card p { font-size: .92rem; color: var(--muted); line-height: 1.65; }

/* ---------- Section intro helper ---------- */
.sec-intro { margin-bottom: clamp(1.8rem,3.5vw,2.8rem); }
.sec-intro .section-title { margin: .8rem 0 .8rem; }
.sec-intro p { color: var(--muted); max-width: 60ch; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .stat-strip-inner { grid-template-columns: 1fr; }
  .stat-strip .stat { border-inline-start: none; border-bottom: 1px solid var(--line-2); }
  .stat-strip .stat:last-child { border-bottom: none; }
  .content-block.two-col { grid-template-columns: 1fr; }
  .cta-band .cta-inner { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 1fr; }
}
