/* K Resourcing — Services page. Shares tokens and components with styles.css. */

/* ---------- 01 hero ---------- */
.sv-hero {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  border-radius: 36px;
  overflow: hidden;
  min-height: clamp(560px, 76vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--navy);
  color: var(--white);
}
.sv-hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 12, 51, .9) 0%, rgba(7, 12, 51, .55) 55%, rgba(10, 20, 80, .15) 100%); }
.sv-hero-body { position: relative; padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; gap: 28px; }
.sv-hero h1 { margin: 0; font-size: clamp(52px, 8vw, 124px); line-height: .94; letter-spacing: -.045em; font-weight: 400; }
.sv-hero h1 em { font-style: normal; color: var(--gold); font-weight: 500; }
.sv-hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.sv-hero-foot p { margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--mist-2); max-width: 58ch; }
.sv-hero-foot .btn-outline { border-color: rgba(255, 255, 255, .28); }

/* ---------- 02 service index ---------- */
.sv-index { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--pad-x); }
.sv-layout { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 64px); align-items: flex-start; }

/* below 1000px: a sticky row of chips under the header */
.sv-nav {
  position: sticky;
  top: 92px;
  z-index: 20;
  flex: 1 1 100%;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 4px;
  margin: 0 -4px;
  background: rgba(245, 247, 252, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.sv-nav::-webkit-scrollbar { display: none; }
.sv-nav-group { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.sv-nav-label { display: none; }
.sv-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 15px;
  white-space: nowrap;
  flex: 0 0 auto;
  background: var(--white);
  color: var(--body);
  border: 1px solid var(--line-2);
  transition: background .25s, color .25s;
}
.sv-nav a span:first-child { font-family: var(--mono); font-size: 11px; opacity: .6; }
.sv-nav a:not(.is-active):hover { background: var(--panel); color: var(--body); }
.sv-nav a.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* 1000px and up: a sticky sidebar with group labels */
@media (min-width: 1000px) {
  .sv-nav {
    top: 112px;
    flex: 0 0 260px;
    flex-direction: column;
    gap: 20px;
    overflow: visible;
    padding: 0;
    margin: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .sv-nav-group { flex-direction: column; align-items: stretch; gap: 2px; }
  .sv-nav-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px; }
  .sv-nav a { background: transparent; border-color: transparent; }
  .sv-nav a.is-active { border-color: transparent; }
}

.sv-list { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: clamp(56px, 7vw, 96px); }
.sv-item { scroll-margin-top: 110px; display: flex; flex-direction: column; gap: 28px; }
.sv-photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--ink); }
.sv-photo img { width: 100%; height: 100%; object-fit: cover; }
.sv-tag {
  position: absolute;
  left: 20px;
  top: 20px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.sv-text { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 48px; }
.sv-title { display: flex; flex-direction: column; gap: 10px; }
.sv-title span { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.sv-title h2 { margin: 0; font-size: clamp(34px, 3.8vw, 56px); line-height: 1; letter-spacing: -.035em; font-weight: 500; }
.sv-body { display: flex; flex-direction: column; gap: 18px; }
.sv-body p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--body); }
.sv-body strong { color: var(--ink); font-weight: 500; }
.sv-ai { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line-2); }
.sv-ai span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  flex: 0 0 auto;
}
.sv-ai span:last-child { font-size: 14px; color: var(--body); }

/* ---------- 04 scale CTA ---------- */
.sv-cta-wrap { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--pad-x-tight) 0; }
.sv-cta { min-height: 520px; }
.sv-cta .photo-panel-shade { background: linear-gradient(90deg, rgba(7, 12, 51, .6), rgba(7, 12, 51, 0) 75%); }
.sv-cta .glass-card { max-width: 640px; }
.sv-cta .glass-card h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.02; }
.sv-cta .glass-card p { font-size: 17px; line-height: 1.6; }
.sv-cta-btn { align-self: flex-start; }

/* ---------- 05 contact ---------- */
.contact.sv-contact { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
