/* ===========================================================================
   SVI SOLUTION — Case-study / trust design system
   ---------------------------------------------------------------------------
   Self-contained CSS (no CDN needed) used by the Projects case studies and the
   trust sections on the home page. Dark navy + white, Inter, restrained accent
   colour. Safe to load alongside the site's existing Tailwind classes: every
   class here is prefixed with "p-" style names under .svi-pro-scope or "sp-".
   =========================================================================== */

:root {
  --sp-navy:      #0B1F44;
  --sp-navy-700:  #0F2C6B;
  --sp-navy-600:  #163a80;
  --sp-blue:      #1B72B5;
  --sp-blue-100:  #E8F1FA;
  --sp-green:     #457818;
  --sp-green-100: #EEF6E6;
  --sp-ink:       #0F172A;
  --sp-body:      #475569;
  --sp-muted:     #64748B;
  --sp-line:      #E2E8F0;
  --sp-bg:        #F6F8FB;
  --sp-radius:    16px;
  --sp-shadow:    0 1px 2px rgba(11,31,68,.04), 0 12px 32px -12px rgba(11,31,68,.18);
  --sp-shadow-lg: 0 24px 60px -20px rgba(11,31,68,.35);
}

.sp { font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--sp-body); }
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp h1, .sp h2, .sp h3, .sp h4 { color: var(--sp-ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
.sp p { margin: 0; line-height: 1.7; }
.sp a { color: inherit; }
.sp a.sp-btn { text-decoration: none; }
.sp img { max-width: 100%; display: block; }
.sp figure { margin: 0; }

.sp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sp-section { padding: 72px 0; }
.sp-section--tight { padding: 48px 0; }
.sp-section--bg { background: var(--sp-bg); }
.sp-section--dark { background: var(--sp-navy); color: #CBD5E1; }
.sp-section--dark h1, .sp-section--dark h2, .sp-section--dark h3, .sp-section--dark h4 { color: #fff; }

.sp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sp-blue); background: var(--sp-blue-100);
  border-radius: 999px; padding: 6px 14px;
}
.sp-section--dark .sp-eyebrow { color: #9CC9F0; background: rgba(255,255,255,.08); }

.sp-h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
.sp-h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.sp-h3 { font-size: 19px; font-weight: 700; }
.sp-lead { font-size: 17px; max-width: 70ch; }
.sp-small { font-size: 13px; }
.sp-muted { color: var(--sp-muted); }

/* ---------- buttons ---------- */
.sp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sp-btn:active { transform: translateY(1px); }
a.sp-btn--primary, .sp-btn--primary { background: var(--sp-navy-700); color: #fff; box-shadow: 0 10px 24px -12px rgba(15,44,107,.9); }
.sp-btn--primary:hover { background: var(--sp-navy-600); }
a.sp-btn--ghost, .sp-btn--ghost { background: #fff; color: var(--sp-ink); border-color: var(--sp-line); }
.sp-btn--ghost:hover { border-color: #C7D2E1; box-shadow: var(--sp-shadow); }
a.sp-btn--light, .sp-btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.sp-btn--light:hover { background: rgba(255,255,255,.2); }
a.sp-btn--wa, .sp-btn--wa { background: #25D366; color: #06301a; }
.sp-btn--wa:hover { background: #1FBE5B; }

/* ---------- badges & tags ---------- */
.sp-verified {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--sp-green); background: var(--sp-green-100);
  border: 1px solid #CFE6B8; border-radius: 999px; padding: 6px 12px;
}
.sp-verified svg { width: 13px; height: 13px; }
.sp-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; font-weight: 600; color: var(--sp-muted); }
.sp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-tag {
  font-size: 12px; font-weight: 600; color: #334155;
  background: #fff; border: 1px solid var(--sp-line); border-radius: 8px; padding: 5px 11px;
}
.sp-section--dark .sp-tag { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #DCE7F5; }

/* ---------- stats ---------- */
.sp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.sp-stat {
  background: #fff; border: 1px solid var(--sp-line); border-radius: 14px;
  padding: 18px 16px; text-align: center;
}
.sp-section--dark .sp-stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.sp-stat b { display: block; font-size: 26px; font-weight: 800; color: var(--sp-navy-700); letter-spacing: -.03em; }
.sp-section--dark .sp-stat b { color: #fff; }
.sp-stat span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-muted); }
.sp-section--dark .sp-stat span { color: #93A8C6; }

/* ---------- case-study cards ---------- */
/* project cards in a row: 1 column on phones, 2 on tablets, 3 on desktop */
.sp-cases { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 768px)  { .sp-cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sp-cases { grid-template-columns: repeat(3, 1fr); } }
.sp-case {
  display: grid; grid-template-columns: 1fr;
  background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius);
  overflow: hidden; box-shadow: var(--sp-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sp-case:hover { transform: translateY(-3px); box-shadow: var(--sp-shadow-lg); }
/* card image sits on top: 220px tall, cropped, rounded at the top corners */
.sp-case__media { position: relative; background: #EDF2F8; height: 220px; overflow: hidden; border-radius: 16px 16px 0 0; }
.sp-case__media .sp-shot { margin: 0; width: 100%; height: 100%; border: 0; border-radius: 16px 16px 0 0; cursor: zoom-in; }
.sp-case__media img { width: 100%; height: 100%; object-fit: cover; }
.sp-case__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.sp-case__title { font-size: 22px; font-weight: 800; }
.sp-case__link { text-decoration: none; }
.sp-case__link:hover .sp-case__title { color: var(--sp-blue); }

/* ---------- galleries ---------- */
.sp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.sp-shot {
  position: relative; border: 1px solid var(--sp-line); border-radius: 14px; overflow: hidden;
  background: #fff; cursor: zoom-in; aspect-ratio: 4 / 3;
}
.sp-shot img { width: 100%; height: 100%; object-fit: cover; }
.sp-shot figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(11,31,68,.85));
  color: #fff; font-size: 12px; font-weight: 600; padding: 26px 12px 10px;
}
.sp-shot__tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  background: rgba(255,255,255,.94); color: var(--sp-green);
  border-radius: 999px; padding: 4px 9px;
}

/* photo placeholder shown until the real .jpg is uploaded */
.sp-shot--empty, .sp-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: repeating-linear-gradient(45deg, #F1F5F9, #F1F5F9 12px, #E9EFF6 12px, #E9EFF6 24px);
  border: 1px dashed #B9C7D9; color: var(--sp-muted); text-align: center; padding: 16px;
  cursor: default;
}
.sp-ph__name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #334155; word-break: break-all; }
.sp-ph__hint { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- before / after ---------- */
.sp-ba { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.sp-ba__col { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); overflow: hidden; }
.sp-ba__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
}
.sp-ba__head--before { background: #FEF2F2; color: #B91C1C; }
.sp-ba__head--after  { background: var(--sp-green-100); color: var(--sp-green); }
.sp-ba__col .sp-shot { border: 0; border-radius: 0; }

/* ---------- process steps ---------- */
.sp-steps { display: grid; gap: 14px; counter-reset: step; }
.sp-step {
  position: relative; background: #fff; border: 1px solid var(--sp-line);
  border-radius: 14px; padding: 20px 22px 20px 62px;
}
.sp-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px;
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--sp-navy-700); color: #fff;
  font-size: 13px; font-weight: 800; display: grid; place-items: center;
}

/* ---------- logos / trust ---------- */
.sp-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.sp-logo {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--sp-line); border-radius: 12px;
  padding: 14px 22px; min-height: 68px; box-shadow: var(--sp-shadow);
}
.sp-logo img { max-height: 34px; width: auto; }
.sp-logo__name { font-size: 16px; font-weight: 800; color: var(--sp-navy-700); letter-spacing: -.01em; }
.sp-logo__sub { display: block; font-size: 11px; font-weight: 600; color: var(--sp-muted); letter-spacing: .02em; }

.sp-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.sp-card { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 24px; box-shadow: var(--sp-shadow); }
.sp-card__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sp-blue-100); color: var(--sp-navy-700); margin-bottom: 14px;
}
.sp-card__icon svg { width: 21px; height: 21px; }

/* ---------- testimonials ---------- */
.sp-quote { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 26px; box-shadow: var(--sp-shadow); }
.sp-quote__mark { font-size: 40px; line-height: 1; color: #C7D8EA; font-weight: 800; }
.sp-quote__text { margin-top: 6px; font-size: 15px; color: #334155; min-height: 84px; }
.sp-quote__who { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--sp-line); font-size: 13px; }
.sp-quote__who b { color: var(--sp-ink); }
.sp-quote--empty .sp-quote__text { color: var(--sp-muted); font-style: italic; }

/* ---------- lightbox ---------- */
.sp-lb {
  position: fixed; inset: 0; z-index: 9999; display: none;
  background: rgba(8,16,34,.92); padding: 24px;
  align-items: center; justify-content: center;
}
.sp-lb.is-open { display: flex; }
.sp-lb__img { max-width: min(1100px, 92vw); max-height: 82vh; border-radius: 12px; box-shadow: var(--sp-shadow-lg); }
.sp-lb__cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #E2E8F0; font-size: 13px; font-weight: 600; padding: 0 20px; }
.sp-lb__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1); color: #fff; font-size: 20px; cursor: pointer;
}
.sp-lb__btn:hover { background: rgba(255,255,255,.2); }
.sp-lb__prev { left: 18px; } .sp-lb__next { right: 18px; }
.sp-lb__close { top: 18px; right: 18px; transform: none; }

/* ---------- floating WhatsApp ---------- */
.sp-wa {
  position: fixed; right: 18px; bottom: 22px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #06301a; text-decoration: none;
  font-size: 13px; font-weight: 800;
  padding: 12px 16px; border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.7);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sp-wa:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(37,211,102,.85); }
.sp-wa svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .sp-wa__label { display: none; } .sp-wa { padding: 14px; } }

/* ---------- animation ---------- */
.sp-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.sp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sp-reveal { opacity: 1; transform: none; transition: none; }
  .sp-case:hover, .sp-wa:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .sp-case { grid-template-columns: 1fr; }
  .sp-case__media { height: 200px; }
  .sp-section { padding: 52px 0; }
}


/* ---------- Field-proven deployments band (flat, minimal) ---------- */
.sp-section--deep { background: #16253E; color: #C3D0E4; }
.sp-section--deep h2, .sp-section--deep h3 { color: #fff; }
.sp-section--deep .sp-eyebrow { color: #9CC9F0; background: rgba(255,255,255,.07); }
.sp-card--flat {
  background: #1E2E4A;
  border: 1px solid #2A3A5A;
  border-radius: 12px;
  box-shadow: none;
  padding: 26px 24px;
}
.sp-card--flat:hover { border-color: #38496D; }
.sp-card--flat .sp-card__icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(156,201,240,.1); color: #9CC9F0; margin-bottom: 16px;
}
.sp-card--flat h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.sp-card--flat p { color: #A9B8D0; font-size: 14px; margin-top: 8px; }
a.sp-btn--outline, .sp-btn--outline {
  background: transparent; color: #fff; border: 1px solid #2A3A5A; border-radius: 12px;
}
a.sp-btn--outline:hover, .sp-btn--outline:hover { border-color: #4C6491; background: rgba(255,255,255,.04); }

.sp-case__body .sp-eyebrow { align-self: flex-start; }


/* ---------- detail-page hero gallery (main image + 3 thumbnails) ---------- */
.sp-hero-gallery { display: grid; gap: 12px; }

/* two project photos side by side (stacks on phones) */
.sp-photo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .sp-photo-row { grid-template-columns: 1fr; } }
.sp-shot--main { aspect-ratio: auto; height: 400px; border-radius: 14px; }
.sp-shot--main img { width: 100%; height: 100%; object-fit: cover; }
.sp-hero-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sp-thumb {
  position: relative; margin: 0; height: 120px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--sp-line); border-radius: 12px; background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-thumb:hover { border-color: var(--sp-blue); transform: translateY(-2px); }
.sp-thumb.is-active { border-color: var(--sp-navy-700); box-shadow: 0 0 0 2px rgba(15,44,107,.18); }
@media (max-width: 640px) {
  .sp-shot--main { height: 260px; }
  .sp-thumb { height: 84px; }
}
.sp-thumb.sp-shot--empty {
  background: repeating-linear-gradient(45deg, #F1F5F9, #F1F5F9 8px, #E9EFF6 8px, #E9EFF6 16px);
  border-style: dashed;
}
.sp-thumb.sp-shot--empty .sp-ph__hint { font-size: 9px; }
.sp-thumb.sp-shot--empty .sp-ph__name { font-size: 10px; }
.sp-shot__tag { white-space: nowrap; }
