/* =========================================================
   Parkar case study template
   Replace the tokens below with the live site's values.
   Header and footer styles are stand-ins: use the site's own.
   ========================================================= */

:root {
  --cs-ink: #23272A;          /* headings, dark bands */
  --cs-ink-deep: #1C2737;
  --cs-body: #4A5053;         /* body text */
  --cs-muted: #5A6164;        /* captions, labels */
  --cs-accent: #2A384E;       /* slate text and icons */
  --cs-accent-dark: #1C2737;  /* link hover */
  --cs-accent-light: #28DFE2; /* numbers and buttons on dark bands */
  --cs-accent-tint: #DBDFE4;  /* step markers */
  --cs-surface: #EEEFEC;      /* hero and card backgrounds */
  --cs-line: #DCDEDA;         /* borders and dividers */
  --cs-on-dark: #E6E7E4;      /* body text on dark bands */
  --cs-white: #FFFFFF;

  --cs-font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --cs-max: 1200px;
  --cs-gutter: 24px;
  --cs-radius-sm: 12px;
  --cs-radius: 14px;
  --cs-radius-lg: 16px;
  --cs-radius-xl: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--cs-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--cs-body);
  background: var(--cs-white);
}

img { max-width: 100%; display: block; }

a { color: var(--cs-accent); }
a:hover { color: var(--cs-accent-dark); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cs-accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { color: var(--cs-ink); margin: 0; }
p { margin: 0; }

.cs-container {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding-inline: var(--cs-gutter);
}

.cs-skip {
  position: absolute;
  left: -9999px;
}
.cs-skip:focus {
  left: 16px;
  top: 16px;
  background: var(--cs-white);
  padding: 8px 12px;
  z-index: 10;
}

/* Section label: small coloured line above a heading */
.cs-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-accent);
}

.cs-heading { display: flex; flex-direction: column; gap: 8px; }
.cs-h2 { font-size: 34px; line-height: 1.2; font-weight: 700; }
.cs-h3 { font-size: 19px; line-height: 1.35; font-weight: 600; }

/* ---------- Hero ---------- */
.cs-hero { background: var(--cs-surface); }
.cs-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-block: 48px 64px;
}
.cs-hero__text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cs-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--cs-muted);
}
.cs-breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.cs-breadcrumb a { color: var(--cs-muted); text-decoration: none; }
.cs-breadcrumb [aria-current="page"] { color: var(--cs-ink); }

.cs-hero__title {
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cs-hero__subtitle {
  font-size: 17px;
  line-height: 1.6;
  max-width: 42em;
}
.cs-tags {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cs-tags li {
  font-size: 13px;
  font-weight: 500;
  color: var(--cs-ink);
  background: var(--cs-white);
  border: 1px solid #D5E0E5;
  padding: 6px 12px;
  border-radius: 999px;
}
.cs-hero__media { flex: 1 1 480px; min-width: 0; }
.cs-hero__media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--cs-radius-lg);
}

/* ---------- Stat strip ---------- */
.cs-stats { background: var(--brand-blue-tonal, #113344); }
.cs-stats__list {
  list-style: none;
  margin: 0 auto;
  padding-block: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.cs-stats__item { display: flex; flex-direction: column; gap: 4px; }
.cs-stats__value {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-aqua, #28DFE2);
}
.cs-stats__label { font-size: 17px; color: var(--brand-white-soft, rgba(255,255,255,.82)); }

/* ---------- Body: main column + sidebar ---------- */
.cs-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px;
  padding-block: 72px 24px;
}
.cs-main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.cs-section { display: flex; flex-direction: column; gap: 24px; }
.cs-lead { font-size: 20px; line-height: 1.6; color: var(--cs-ink); }

/* Challenge cards */
.cs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.cs-card {
  background: var(--cs-surface);
  border-radius: var(--cs-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-card p { font-size: 16px; }

/* Flow diagram */
.cs-flow {
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cs-flow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.cs-flow__step {
  flex: 1 1 140px;
  background: var(--cs-surface);
  border-radius: var(--cs-radius-sm);
  padding: 18px;
  text-align: center;
}
.cs-flow__name { display: block; font-size: 17px; font-weight: 600; color: var(--cs-ink); }
.cs-flow__desc { display: block; font-size: 14px; color: var(--cs-muted); }
.cs-flow__arrow { flex: 0 0 32px; display: flex; justify-content: center; }
.cs-flow__base {
  background: var(--cs-ink);
  color: var(--cs-white);
  border-radius: var(--cs-radius-sm);
  padding: 16px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

/* Solution steps */
.cs-steps { list-style: none; margin: 0; padding: 0; }
.cs-steps li {
  display: flex;
  gap: 20px;
  padding-block: 20px;
  border-top: 1px solid var(--cs-line);
}
.cs-steps li:last-child { border-bottom: 1px solid var(--cs-line); }
.cs-steps__num {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--cs-accent-tint);
  color: var(--cs-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-steps__text { display: flex; flex-direction: column; gap: 4px; }

.cs-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cs-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--cs-radius-lg);
}
.cs-figure figcaption { font-size: 14px; color: var(--cs-muted); }

/* Results */
.cs-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* four in one row on desktop */
  gap: 16px;
}
.cs-result {
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-result__value { font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--cs-accent); }
.cs-result h3 { font-size: 17px; font-weight: 600; }
.cs-result p { font-size: 15px; }

/* Quote */
.cs-quote {
  background: var(--cs-surface);
  border-radius: var(--cs-radius-xl);
  padding: 48px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cs-quote blockquote {
  margin: 0;
  font-size: 26px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--cs-ink);
}
.cs-quote figcaption { display: flex; flex-direction: column; }
.cs-quote__name { font-size: 17px; font-weight: 600; color: var(--cs-ink); }
.cs-quote__role { font-size: 15px; color: var(--cs-muted); }

/* Sidebar */
.cs-aside {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cs-snapshot {
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cs-snapshot h2 { font-size: 13px; }
.cs-snapshot dl { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.cs-snapshot dt { font-size: 13px; color: var(--cs-muted); }
.cs-snapshot dd { margin: 0; font-size: 16px; font-weight: 500; color: var(--cs-ink); }

.cs-related-workflow {
  text-decoration: none;
  background: var(--brand-blue-tonal, #113344);
  border-radius: var(--cs-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-related-workflow .cs-label { color: var(--brand-aqua, #28DFE2); }
.cs-related-workflow__title { font-size: 19px; font-weight: 600; color: #fff; line-height: 1.35; }
.cs-related-workflow__link { font-size: 15px; color: var(--brand-white-soft, rgba(255,255,255,.82)); }

/* Keep reading */
.cs-more {
  padding-block: 64px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cs-more h2 { font-size: 28px; font-weight: 700; }
.cs-more__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.cs-more__card {
  text-decoration: none;
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-more__card:hover { border-color: var(--cs-accent); }
.cs-more__title { font-size: 19px; font-weight: 600; color: var(--cs-ink); }
.cs-more__desc { font-size: 15px; color: var(--cs-muted); }

/* Call to action */
.cs-cta { background: var(--brand-blue-tonal, #113344); }
.cs-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 64px;
}
.cs-cta__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cs-cta h2 { font-size: 34px; line-height: 1.2; font-weight: 700; color: #fff; }
.cs-cta p { font-size: 18px; color: var(--brand-white-soft, rgba(255,255,255,.82)); }
.cs-cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.cs-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
}
.cs-btn--primary { background: var(--cs-accent-light); color: var(--cs-ink); }
.cs-btn--primary:hover { background: #1DCCFD; color: var(--cs-ink); }
.cs-btn--secondary { border: 1px solid var(--cs-accent-light); color: var(--cs-white); }
.cs-btn--secondary:hover { background: rgba(40, 223, 226, 0.12); color: var(--cs-white); }

/* ---------- Smaller screens ---------- */
@media (max-width: 720px) {
  .cs-hero__title { font-size: 28px; }
  .cs-hero__subtitle { font-size: 17px; }
  .cs-hero__media img { height: 260px; }
  .cs-stats__value { font-size: 44px; }
  .cs-h2, .cs-cta h2 { font-size: 28px; }
  .cs-quote { padding: 32px 24px; }
  .cs-quote blockquote { font-size: 21px; }
  .cs-figure img { height: 240px; }
  .cs-flow { padding: 24px; }
  .cs-flow__arrow { transform: rotate(90deg); flex-basis: 100%; }
  .cs-flow__step { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* =========================================================
   Optional sections (added for longer case studies)
   Each section is optional: leave it out when a case study
   has no content for it.
   ========================================================= */

/* At a glance: short factual summary under the stat strip */
.cs-glance {
  background: var(--cs-surface);
  border-radius: var(--cs-radius-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-glance p { font-size: 18px; line-height: 1.6; color: var(--cs-ink); }

/* Challenge cards: two per row when there are four */
.cs-cards--two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* What we delivered: optional timeline strip */
.cs-phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.cs-phases li {
  border-top: 3px solid var(--cs-accent);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
}
.cs-phases__name { font-size: 16px; font-weight: 600; color: var(--cs-ink); }
.cs-phases__when { font-size: 14px; color: var(--cs-muted); }

/* What we delivered: items */
.cs-delivered { margin: 0; }
.cs-delivered > div {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 8px 32px;
  padding-block: 18px;
  border-top: 1px solid var(--cs-line);
}
.cs-delivered > div:last-child { border-bottom: 1px solid var(--cs-line); }
.cs-delivered dt { font-size: 17px; font-weight: 600; color: var(--cs-ink); }
.cs-delivered dd { margin: 0; font-size: 16px; }
@media (max-width: 720px) {
  .cs-delivered > div { grid-template-columns: 1fr; }
}

/* What's next */
.cs-next {
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-next p { font-size: 18px; color: var(--cs-ink); }
