/* ═══════════════════════════════════════════════════════════════
   SERVICES — packages by category (services.html) and one package
   (service-detail.html). Rendered by assets/js/services.js.
   ═══════════════════════════════════════════════════════════════ */

/* ── PAGE HERO ── */
.svc-page-hero { text-align: center; padding: calc(var(--nav-h) + 84px) var(--gutter) 56px; }
.svc-hero-label { display: none; }
.svc-page-hero h1 { font-family: var(--font); font-size: clamp(2.9rem, 5.4vw, 4.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.03; margin-bottom: 18px; color: var(--white); }
.svc-page-hero p { font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 400; letter-spacing: -.012em; line-height: 1.42; color: #a1a5b8; max-width: 620px; margin: 0 auto; }

/* ── CATEGORY BAR (sticky under the header) ── */
.svc-nav { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(7,8,15,0.8); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); }
.svc-nav[hidden] { display: none; }
.svc-nav:empty { min-height: 71px; } /* the category bar's height, held until services.js fills it */
/* The site header is see-through: fill the strip above the bar so cards and headings don't show behind it */
.svc-nav::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--nav-h); background: rgba(7,8,15,0.92); opacity: 0; pointer-events: none; }
.svc-nav.is-stuck::before { opacity: 1; }
.svc-nav-inner { max-width: var(--page-max); margin: 0 auto; padding: 18px var(--gutter) 12px; /* the header logo hangs ~14px below the header */ display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.svc-nav-inner::-webkit-scrollbar { display: none; }
.svc-nav a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 13px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 0.86rem; font-weight: 500; letter-spacing: -.005em; color: #c6c9d6; text-decoration: none; transition: background .2s, color .2s; }
.svc-nav a i { font-size: 1.1rem; color: var(--tone); transition: color .2s; }
.svc-nav a:hover { background: rgba(255,255,255,.11); color: var(--white); }
.svc-nav a.is-active { background: var(--white); color: #0c0d14; }
.svc-nav a.is-active i { color: #0c0d14; }
.svc-nav a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* ── SECTIONS ── */
.svc-content { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); min-height: 100vh; } /* holds space until the packages are drawn, so the sections below don't jump */
.svc-cat { padding-top: 72px; scroll-margin-top: calc(var(--nav-h) + 42px); }
/* One line in two tones: the name, then what it is */
.svc-cat-head { font-family: var(--font); font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 600; letter-spacing: -.024em; line-height: 1.16; color: #7f8398; max-width: 900px; margin-bottom: 32px; }
.svc-cat-head span { color: var(--white); }

/* ── CARDS ── */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.svc-card { --tone: #F0A35E; position: relative; display: flex; flex-direction: column; min-height: 318px; padding: 30px 28px 24px; border-radius: 26px; background: #14151f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s; }
.svc-card:hover { transform: scale(1.018); background: #191a26; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 24px 50px rgba(0,0,0,.45); }
.svc-card.is-loading { background: linear-gradient(90deg, #12131c, #191a26, #12131c); background-size: 200% 100%; animation: shimmer 1.4s infinite; box-shadow: none; transform: none; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.svc-card-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: color-mix(in srgb, var(--tone) 15%, transparent); color: var(--tone); font-size: 1.85rem; margin-bottom: 26px; }
.svc-card-badge { position: absolute; top: 28px; right: 24px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 0.74rem; font-weight: 500; color: #e4e6ee; }
.svc-card h3 { font-family: var(--font); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--white); margin-bottom: 10px; }
.svc-card-link { color: inherit; text-decoration: none; }
.svc-card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }  /* whole card is the link */
.svc-card-link:focus-visible { outline: none; }
.svc-card-link:focus-visible::after { outline: 2px solid var(--white); outline-offset: 3px; }
.svc-card-tag { font-size: 0.92rem; line-height: 1.42; letter-spacing: -.005em; color: #a1a5b8; }
.svc-card-foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.svc-card-meta { min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: #a1a5b8; }
.svc-card-meta i { font-size: 1rem; }
.svc-card-go { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--white); font-size: 0.95rem; transition: background .2s, color .2s; }
.svc-card:hover .svc-card-go { background: var(--white); color: #0c0d14; }
.svc-empty { padding: 60px 24px; text-align: center; color: var(--muted-hi); }
.svc-empty a { color: var(--warm-hi); }

/* ── NOT SURE BANNER ── */
.svc-custom { width: calc(min(100%, var(--page-max)) - 2 * var(--gutter)); margin: 88px auto 96px; padding: 56px 32px; border-radius: 32px; background: #14151f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.svc-custom h2 { font-family: var(--font); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; color: var(--white); margin-bottom: 12px; }
.svc-custom p { font-size: 1.08rem; color: #a1a5b8; line-height: 1.45; letter-spacing: -.01em; max-width: 540px; margin: 0 auto; }
.svc-custom-btn.btn-cta { padding: 14px 28px; border: 0; background: var(--white); color: #0c0d14; font-size: 0.95rem; font-weight: 600; letter-spacing: -.005em; text-transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.svc-custom-btn.btn-cta:hover { background: #fff; transform: scale(1.02); }

/* ═════════════════ ONE PACKAGE (service-detail.html) ═════════════════ */
.svd { max-width: 1080px; margin: 0 auto; padding: calc(var(--nav-h) + 40px) var(--gutter) 110px; }
.svd-loading { height: 360px; border-radius: 24px; background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05), rgba(255,255,255,0.02)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.svd-missing { text-align: center; padding: 80px 0; }
.svd-missing h1 { font-family: var(--font-display); font-size: 3rem; font-weight: 400; margin-bottom: 10px; }
.svd-missing p { color: var(--muted-hi); margin-bottom: 26px; }
.svd-back { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 500; color: var(--muted-hi); text-decoration: none; margin-bottom: 30px; transition: color 0.2s; }
.svd-back:hover { color: var(--white); }

.svd-hero { display: grid; gap: 40px; align-items: center; margin-bottom: 34px; }
.svd-hero.has-cover { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.svd-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; color: var(--warm-hi); margin-bottom: 16px; }
.svd-eyebrow i { font-size: 1.15rem; }
.svd-hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 5.6vw, 4.4rem); font-weight: 400; letter-spacing: 0.01em; line-height: 0.95; color: var(--white); margin-bottom: 18px; }
.svd-tagline { font-size: 1.2rem; line-height: 1.55; color: #b9bdd0; max-width: 640px; }
.svd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.svd-ghost { color: var(--white); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; }
.svd-ghost:hover { border-color: var(--white); }
.svd-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; border: 1px solid var(--border); }

.svd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-bottom: 64px; }
.svd-facts > div { background: var(--bg); padding: 20px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; align-items: center; }
.svd-facts i { grid-row: span 2; font-size: 1.3rem; color: var(--warm-hi); }
.svd-facts span { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-hi); }
.svd-facts b { font-size: 0.98rem; font-weight: 500; color: var(--white); line-height: 1.4; }

.svd-logos:not(:empty) { margin-bottom: 64px; }
.svd-sec { margin-bottom: 64px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.svd-sec > h2, .svd-box h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 400; letter-spacing: 0.02em; line-height: 1; color: var(--white); margin-bottom: 22px; }
.svd-about p { font-size: 1.08rem; line-height: 1.75; color: #c3c6d6; max-width: 760px; }
.svd-about p + p { margin-top: 14px; }

.svd-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.svd-group { padding: 24px; border-radius: 20px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07); }
.svd-group h3 { font-family: var(--font); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm-hi); margin-bottom: 14px; }
.svd-group ul, .svd-box ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.svd-group li, .svd-box li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; color: rgba(242,243,248,0.88); }
.svd-group li i { color: var(--warm-hi); font-size: 0.82rem; margin-top: 5px; flex-shrink: 0; }

.svd-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.svd-box { padding: 28px; border-radius: 20px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07); }
.svd-box.is-soft { background: transparent; border-style: dashed; }
.svd-box h2 { font-size: 1.7rem; margin-bottom: 18px; }
.svd-box li i { color: var(--cool-hi); font-size: 1.05rem; margin-top: 1px; flex-shrink: 0; }

.svd-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.svd-steps li { padding: 22px 20px 6px 0; position: relative; }
.svd-steps li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); }
.svd-step-n { display: block; font-family: var(--font-display); font-size: 1.6rem; color: rgba(255,255,255,0.25); margin-bottom: 6px; }
.svd-steps b { font-family: var(--font); display: block; font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.svd-steps p { font-size: 0.88rem; line-height: 1.55; color: var(--muted-hi); }

.svd-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.svd-work { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.svd-work-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--bg-3); margin-bottom: 8px; }
.svd-work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.svd-work-img i { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; font-size: 1rem; opacity: 0; transition: opacity 0.25s; }
.svd-work:hover img { transform: scale(1.04); }
.svd-work:hover .svd-work-img i { opacity: 1; }
.svd-work b { font-size: 0.98rem; font-weight: 600; color: var(--white); }
.svd-work small { font-size: 0.82rem; color: var(--muted-hi); }

.svd-cta { margin-bottom: 64px; padding: 40px 44px; border-radius: 24px; background: var(--glow-dual), rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.svd-cta h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: 0.02em; line-height: 1; margin-bottom: 8px; }
.svd-cta p { color: var(--muted-hi); line-height: 1.6; max-width: 520px; }
.svd-cta .btn-cta { flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1180px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .svc-card { min-height: 280px; padding: 24px 22px 20px; }
}
@media (max-width: 720px) {
  .svc-page-hero { padding: calc(var(--nav-h) + 44px) 18px 34px; }
  .svc-nav-inner { padding: 8px 16px 10px; justify-content: flex-start; }
  .svc-nav:empty { min-height: 59px; }
  .svc-content { padding: 0 16px; }
  .svc-cat { padding-top: 56px; scroll-margin-top: calc(var(--nav-h) + 56px); }
  .svc-cat-head { margin-bottom: 22px; }
  .svc-custom { margin: 64px auto 72px; padding: 44px 22px; border-radius: 26px; }
  .svd-cta { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .svd { padding: calc(var(--nav-h) + 24px) 16px 80px; }
  .svd-hero.has-cover { grid-template-columns: 1fr; }
  .svd-facts { margin-bottom: 44px; }
  .svd-sec { margin-bottom: 48px; }
  .svd-cta { margin-left: 0; margin-right: 0; }
}
@media (max-width: 520px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .svc-card { min-height: 0; }
  .svc-card-icon { width: 52px; height: 52px; border-radius: 16px; font-size: 1.6rem; margin-bottom: 18px; }
}

/* Release 4B: 44 px tap targets in the category bar */
.svc-nav a { min-height: 44px; }
