/* Retail Systems & Integration — page-specific styles.
   All new classes are prefixed .rsi- so nothing collides with sitewide CSS
   (assets/styles.css is left untouched). Uses only the shared design tokens
   already defined on :root in assets/styles.css. */

/* Hero: centered, and no min-height (this page's hero has no side visual,
   so the sitewide big-visual hero min-height just left empty space below
   the content). */
.rsi-hero-center{min-height:0;padding-bottom:56px}
.rsi-hero-center .wrap{max-width:800px;text-align:center;margin-left:auto;margin-right:auto}
.rsi-hero-center .display{font-size:clamp(2.1rem,4.3vw,3.5rem)}
.rsi-hero-center .lead{margin-left:auto;margin-right:auto;font-size:clamp(.9rem,1.3vw,1rem)}
.rsi-hero-center .hero-ctas{justify-content:center}

/* tech-stack chips, reused inside the capability accordion rows */
.rsi-chip{
  display:inline-flex;align-items:center;padding:6px 13px;
  border:1px solid var(--line);border-radius:999px;
  background:var(--bone);color:var(--ink);
  font-size:.78rem;font-weight:600;line-height:1.3;
}

/* ===================== CAPABILITIES ACCORDION ===================== */
.rsi-cap-stack{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-top:8px}
.rsi-cap-row{border-bottom:1px solid var(--line);background:var(--paper)}
.rsi-cap-row:last-child{border-bottom:0}
.rsi-cap-row.is-open{background:var(--yellow-soft)}
.rsi-cap-btn{
  width:100%;display:flex;align-items:center;gap:20px;padding:20px 24px;
  background:none;border:0;text-align:left;cursor:pointer;font-family:inherit;
  transition:background .15s;
}
.rsi-cap-row:not(.is-open) .rsi-cap-btn:hover{background:var(--bone)}
.rsi-cap-num{
  flex:none;width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--yellow);
  font-size:.78rem;font-weight:800;display:flex;align-items:center;justify-content:center;
}
.rsi-cap-title{flex:none;width:220px;font-weight:700;font-size:.98rem;letter-spacing:-.01em;color:var(--ink)}
.rsi-cap-chips{flex:1 1 auto;display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.rsi-cap-toggle{flex:none;width:12px;height:8px;color:var(--mut);transition:transform .2s var(--ease)}
.rsi-cap-row.is-open .rsi-cap-toggle{transform:rotate(180deg)}
.rsi-cap-panel{max-height:0;overflow:hidden;transition:max-height .3s var(--ease)}
.rsi-cap-panel-inner{background:var(--ink);color:var(--paper);padding:34px 30px}
.rsi-cap-desc{font-size:.92rem;line-height:1.6;color:#d6d6d2;max-width:820px;margin-bottom:8px}
.rsi-cap-sub{font-size:.82rem;color:var(--mut-dark);max-width:820px;line-height:1.5;margin-bottom:20px}
.rsi-cap-cols{display:grid;grid-template-columns:1.35fr 1fr;gap:10px 30px;margin-top:14px}
.rsi-cap-cols h4{font-size:.72rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--mut-dark);margin:0 0 10px}
.rsi-cap-flow{font-size:.85rem;line-height:1.45;color:#c9c9c4;padding:6px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.rsi-cap-flow:last-child{border-bottom:0}
.rsi-cap-flow b{color:var(--paper);font-weight:650}
.rsi-cap-arrow{color:var(--yellow);font-weight:700;padding:0 4px}
.rsi-cap-fixes{list-style:none;margin:0;padding:0}
.rsi-cap-fixes li{font-size:.85rem;line-height:1.45;color:#bdbdb8;padding:6px 0 6px 16px;position:relative}
.rsi-cap-fixes li::before{content:"";position:absolute;left:0;top:14px;width:5px;height:5px;border-radius:50%;background:var(--yellow)}

@media(max-width:820px){
  .rsi-cap-btn{flex-wrap:wrap;gap:10px 16px}
  .rsi-cap-title{width:auto}
  .rsi-cap-cols{grid-template-columns:1fr;gap:20px}
}

/* ===================== CASE STUDIES CAROUSEL ===================== */
.rsi-case-carousel{position:relative;margin-top:8px}
.rsi-case-arrow{
  position:absolute;top:36%;width:48px;height:48px;border-radius:50%;
  border:1.5px solid var(--line-dark);background:var(--paper);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:background .15s,transform .15s;z-index:2;
}
.rsi-case-arrow:hover{background:var(--bone);transform:translateY(-2px)}
.rsi-case-arrow svg{width:16px;height:16px}
.rsi-case-arrow-left{left:-24px}
.rsi-case-arrow-right{right:-24px}
.rsi-case-dots{display:flex;justify-content:center;gap:10px;margin-top:32px}
.rsi-case-dots button{
  width:9px;height:9px;border-radius:50%;background:var(--line);border:0;padding:0;cursor:pointer;
  transition:background .15s,transform .15s;
}
.rsi-case-dots button.is-active{background:var(--yellow);transform:scale(1.25)}

@media(max-width:1060px){
  .rsi-case-arrow{display:none}
}

/* Recent Work cards: same treatment as the Retail Data & AI page — a
   semi-transparent photo of the actual case behind the metric, instead of
   a flat grey block, and no separate client-name line above the image. */
.rsi-case-link{color:inherit;text-decoration:none}
.rsi-case-link .case-metric{
  position:relative;overflow:hidden;isolation:isolate;
  height:144px;display:flex;flex-direction:column;justify-content:center;
}
.rsi-case-link .case-metric-visual{
  position:absolute;inset:0;z-index:0;background-size:cover;background-position:center;
  opacity:.22;
}
.rsi-case-link .case-metric b{
  position:relative;z-index:1;line-height:1.28;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.rsi-case-link .case-metric-industry{position:relative;z-index:1;margin-top:8px;display:block}

/* closing note under the capability grid */
.rsi-capability-note{margin-top:28px;max-width:820px}
.rsi-capability-note a{color:var(--ink);font-weight:700;border-bottom:1px solid var(--line)}
.rsi-capability-note a:hover{border-bottom-color:var(--ink)}

/* numbered value cards in "Why It Matters" */
.rsi-value-num{
  display:block;font-size:.78rem;font-weight:800;letter-spacing:.09em;
  color:var(--mut);margin-bottom:10px;text-transform:uppercase;
}

/* dark stat plate under the value cards, reuses .facts/.facts-grid/.fact */
.rsi-stat-band{margin-top:36px;border-radius:var(--radius);overflow:hidden}
.rsi-stat-band .facts-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.rsi-stat-band .fact{border-left-color:#3a3a37}
.rsi-stat-band .fact:first-child{border-left:0}
.rsi-stat-band .fact span{color:var(--mut-dark)}

/* certifications pill row — filled tiles (not outline pills) so the
   technologies themselves read more clearly. */
.rsi-cert-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:28px}
.rsi-cert-pill{
  padding:18px 28px;border:1px solid var(--line);border-radius:var(--radius-sm);
  background:var(--bone);font-weight:750;font-size:.96rem;letter-spacing:-.01em;
}
.rsi-cert-caption{margin-top:16px;color:var(--mut);font-size:.86rem}

/* Section headings that should sit on one line at desktop widths — the
   sitewide .section-head max-width (720px) is what wraps these onto two
   lines; widen just the heading here, keep the lead paragraph narrow. */
#capabilities .section-head,
#certifications .section-head{max-width:960px}
#capabilities .section-head .lead,
#certifications .section-head .lead{max-width:680px}
@media(min-width:1160px){
  #capabilities .section-head h2,
  #certifications .section-head h2{white-space:nowrap}
}

/* Two consecutive same-background sections (capabilities/why-it-matters
   are both plain white; certifications/contact are both bone) otherwise
   leave a big flat gap with no visual separator. Tighten just those. */
#why-it-matters{padding-top:48px}
#contact{padding-top:48px}

@media(max-width:900px){
  .rsi-stat-band .facts-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .rsi-stat-band .facts-grid{grid-template-columns:1fr}
  .rsi-stat-band .fact{border-left:0!important;border-top:1px solid #3a3a37}
  .rsi-stat-band .fact:first-child{border-top:0}
}
