/* =========================================================
   Single case study — Godaam Technologies
   ========================================================= */

.page-case-study {
  background: #fff;
}

.page-case-study .service-detail-hero .hero-copy h1 {
  max-width: 14ch;
}

.page-case-study .service-detail-hero .hero-copy h1 .accent {
  display: block;
  color: var(--blue-400);
  margin-top: 4px;
}

.page-case-study .service-detail-hero .hero-grid {
  align-items: start;
}

.page-case-study .cs-hero-panel {
  position: sticky;
  top: 108px;
}

.cs-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 26px;
}

.cs-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(63, 182, 247, 0.35);
  background: rgba(255, 255, 255, 0.06);
  min-width: 120px;
}

.cs-stat-pill .num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.cs-stat-pill .lbl {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

/* White project details panel */
.cs-hero-panel {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 32px 28px;
  color: var(--text-dark);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cs-hero-panel h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 22px;
}

.cs-detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cs-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-pill-bg);
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-detail-icon .lucide {
  width: 18px;
  height: 18px;
}

.cs-detail-text span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cs-detail-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.cs-panel-tags-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cs-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-panel-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blue-pill-bg);
  color: var(--blue-500);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #c8e5fa;
}

/* Project overview */
.cs-overview-section {
  padding: var(--section-padding-y) 0;
  background: var(--bg-grey);
}

.cs-overview-section .section-sub {
  max-width: 720px;
  margin: 0 auto;
}

.cs-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.cs-overview-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.cs-overview-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 30px 26px;
  border: 1px solid rgba(15, 32, 66, 0.06);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-overview-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.35;
}

.cs-overview-card p {
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-body);
  margin: 0;
}

.cs-overview-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0;
}

.cs-overview-icon .lucide {
  width: 22px;
  height: 22px;
}

.ic-cs-blue {
  background: linear-gradient(135deg, #3fb6f7, #0f8deb);
}

.ic-cs-red {
  background: linear-gradient(135deg, #f87171, #ef4444);
}

/* Key features */
.cs-features-section {
  padding: var(--section-padding-y) 0;
  background: #fff;
}

.cs-features-section .section-sub {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.cs-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.cs-features-grid--compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cs-feature-card {
  background: #f9fafb;
  border-radius: var(--card-radius);
  padding: 26px 22px;
  border: 1px solid rgba(15, 32, 66, 0.06);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-case-study .cs-features-section .cs-feature-icon.ic-cs-blue {
  background: #e8f4fd;
  color: #0f8deb;
}

.page-case-study .cs-features-section .cs-feature-icon.ic-cs-red {
  background: #fdecec;
  color: #ef4444;
}

.page-case-study .cs-features-section .cs-feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.page-case-study .cs-features-section .cs-feature-card p {
  font-size: 14px;
  line-height: 1.75;
  color: #5a6478;
}

.cs-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0;
}

.cs-feature-icon .lucide {
  width: 20px;
  height: 20px;
}

.cs-feature-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.35;
}

.cs-feature-card p {
  font-size: 13px;
  line-height: 1.72;
  color: var(--text-body);
  margin: 0;
}

/* Outcomes — dark */
.cs-outcome-section {
  padding: var(--section-padding-y) 0;
  background: linear-gradient(180deg, #0f2454 0%, #0b1b40 100%);
  color: #fff;
}

.cs-outcome-section .section-h2 {
  color: #fff;
}

.cs-outcome-section .section-sub {
  color: rgba(255, 255, 255, 0.72);
  max-width: 720px;
}

.cs-outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.cs-outcome-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-outcome-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(63, 182, 247, 0.18);
  color: var(--blue-400);
  margin-bottom: 0;
}

.cs-outcome-icon .lucide {
  width: 20px;
  height: 20px;
}

.cs-outcome-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
  line-height: 1.35;
}

.cs-outcome-card p {
  font-size: 13px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* Tech stack */
.cs-tech-section {
  padding: var(--section-padding-y) 0;
  background: #fff;
}

.page-case-study .cs-tech-section .section-sub {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.page-case-study .cs-tech-card .tech-tags span {
  border-radius: 999px;
  border: 1px solid #c8e5fa;
  background: #e8f4fd;
  color: #0f8deb;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
}

.cs-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.page-case-study .cs-tech-grid--five {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.page-case-study .cs-tech-grid--five .cs-tech-card:nth-child(1),
.page-case-study .cs-tech-grid--five .cs-tech-card:nth-child(2),
.page-case-study .cs-tech-grid--five .cs-tech-card:nth-child(3) {
  grid-column: span 2;
}

.page-case-study .cs-tech-grid--five .cs-tech-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.page-case-study .cs-tech-grid--five .cs-tech-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.cs-tech-card {
  background: #fff;
  border: 1px solid rgba(15, 32, 66, 0.08);
  border-radius: var(--card-radius);
  padding: 28px 26px;
  box-shadow: 0 8px 24px rgba(15, 32, 66, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-case-study .cs-tech-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.35;
}

.page-case-study .cs-tech-card .tech-tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Final CTA */
.page-case-study .cs-final-cta {
  padding-top: 88px;
  padding-bottom: 0;
}

.page-case-study .cs-final-cta .project-copy h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.12;
  max-width: 640px;
}

.page-case-study .cs-final-cta .project-copy h2 .accent {
  color: var(--blue-400);
}

.page-case-study .cs-cta-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin: 28px 0 12px;
}

.page-case-study .cs-final-cta .project-card {
  border-radius: var(--card-radius);
}

.page-case-study .cs-final-cta .project-card .panel-note {
  margin-top: 20px;
}

.page-case-study .cs-final-cta .contact-row {
  margin-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
}

@media (max-width: 768px) {
  .page-case-study .cs-final-cta .contact-row {
    margin-top: 32px;
    padding-top: 24px;
    padding-bottom: 32px;
  }
}

/* .project-form field styles → css/forms.css */

@media (max-width: 1100px) {
  .cs-features-grid,
  .cs-features-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-case-study .service-detail-hero .hero-grid {
    grid-template-columns: 1fr;
  }

  .page-case-study .cs-hero-panel {
    position: static;
  }

  .page-case-study .service-detail-hero .hero-copy h1 {
    max-width: none;
  }

  .cs-overview-grid,
  .cs-overview-grid--two,
  .cs-tech-grid,
  .page-case-study .cs-tech-grid--five {
    grid-template-columns: 1fr;
  }

  .page-case-study .cs-tech-grid--five .cs-tech-card {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 768px) {
  .cs-stat-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cs-features-grid {
    grid-template-columns: 1fr;
  }

  .cs-features-grid--compact {
    grid-template-columns: 1fr;
  }

  .cs-outcome-grid {
    grid-template-columns: 1fr;
  }

  .page-case-study .cs-final-cta .project-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   LifeRise case study — Figma walkthrough layout
   ========================================================= */

.page-liferise-case-study .service-detail-hero .hero-copy h1,
.page-cs-modern .service-detail-hero .hero-copy h1 {
  max-width: 16ch;
}

.page-liferise-case-study .service-detail-hero .hero-copy h1 .accent,
.page-cs-modern .service-detail-hero .hero-copy h1 .accent {
  display: block;
}

.page-case-study .cs-overview-section .section-sub {
  max-width: 820px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.page-case-study .cs-overview-section .cs-overview-icon.ic-cs-blue {
  background: #e8f4fd;
  color: #0f8deb;
}

.page-case-study .cs-overview-section .cs-overview-icon.ic-cs-red {
  background: #fdecec;
  color: #ef4444;
}

.page-case-study .cs-overview-section .cs-overview-card {
  box-shadow: 0 10px 28px rgba(15, 32, 66, 0.05);
}

.page-case-study .cs-overview-section .cs-overview-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.page-case-study .cs-overview-section .cs-overview-card p {
  font-size: 14px;
  line-height: 1.75;
  color: #5a6478;
}

.cs-hero-panel--glance .cs-glance-modules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-hero-panel--glance .cs-glance-modules li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.cs-hero-panel--glance .cs-glance-modules .lucide,
.cs-hero-panel--glance .cs-glance-modules i {
  width: 16px;
  height: 16px;
  color: var(--blue-500);
  flex-shrink: 0;
}

/* Walkthrough */
.cs-walkthrough-section {
  padding: var(--section-padding-y) 0;
  background: #fff;
}

.cs-walkthrough-section .section-sub {
  max-width: 720px;
  margin: 0 auto;
}

.cs-walkthrough-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 52px;
}

.cs-walkthrough-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: stretch;
}

.cs-walkthrough-row--reverse .cs-walkthrough-copy {
  order: 2;
}

.cs-walkthrough-row--reverse .cs-walkthrough-media {
  order: 1;
}

.cs-walkthrough-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(15, 141, 235, 0.4);
  background: linear-gradient(180deg, #fff 0%, #f3f9ff 100%);
  color: var(--blue-500);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 141, 235, 0.1);
}

.cs-walkthrough-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: center;
}

.cs-walkthrough-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.25;
}

.cs-walkthrough-copy p {
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-body);
  margin: 0;
}

.cs-walkthrough-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-walkthrough-points li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
  min-width: 0;
}

.cs-walkthrough-points .lucide,
.cs-walkthrough-points i {
  width: 16px;
  height: 16px;
  color: var(--blue-500);
  flex-shrink: 0;
  margin-top: 3px;
}

.cs-walkthrough-media {
  min-width: 0;
  align-self: start;
}

.cs-walkthrough-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile app case study walkthrough — portrait app screenshots */
.page-mobile-case-study .cs-walkthrough-row {
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
}

.page-mobile-case-study .cs-walkthrough-row--reverse {
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
}

.page-mobile-case-study .cs-walkthrough-media {
  display: grid;
}

  .page-mobile-case-study .cs-walkthrough-media img,
  .page-case-study .cs-walkthrough-media img {
    width: 100% !important;
    height: auto !important;
    max-height: min(72vh, 520px);
    object-fit: contain;
    justify-self: center;
  }

/* Outcome split */
.cs-outcome-split-section {
  padding: var(--section-padding-y) 0;
  background: var(--bg-grey);
}

.cs-outcome-split-section .section-sub {
  max-width: 720px;
  margin: 0 auto;
}

.cs-outcome-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 44px;
}

.cs-outcome-split-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cs-outcome-split-card {
  background: #fff;
  border: 1px solid rgba(63, 182, 247, 0.18);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-outcome-split-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-pill-bg);
  color: var(--blue-500);
  margin-bottom: 0;
}

.cs-outcome-split-icon .lucide,
.cs-outcome-split-icon i {
  width: 18px;
  height: 18px;
}

.cs-outcome-split-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.35;
}

.cs-outcome-split-card p {
  font-size: 13px;
  line-height: 1.72;
  color: var(--text-body);
  margin: 0;
}

.cs-outcome-split-visual {
  overflow: hidden;
  background: transparent;
}

.cs-outcome-split-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-outcome-split--full .cs-outcome-split-cards {
  max-width: 960px;
  margin: 0 auto;
}

/* Testimonial */
.cs-testimonial-section {
  padding: var(--section-padding-y) 0;
  background: #fff;
}

.cs-testimonial-card {
  max-width: 820px;
  margin: 44px auto 0;
  text-align: center;
  padding: 48px 40px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-grey);
  box-shadow: var(--shadow-card);
}

.cs-testimonial-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 22px;
  color: #f5b301;
}

.cs-testimonial-stars .lucide,
.cs-testimonial-stars i {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cs-testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-dark);
  margin: 0 0 24px;
}

.cs-testimonial-footer cite {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  font-style: normal;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cs-testimonial-role {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .cs-walkthrough-row,
  .cs-walkthrough-row--reverse {
    grid-template-columns: 1fr;
  }

  .cs-walkthrough-row--reverse .cs-walkthrough-copy,
  .cs-walkthrough-row--reverse .cs-walkthrough-media {
    order: unset;
  }

  .cs-outcome-split {
    grid-template-columns: 1fr;
  }

  .cs-outcome-split-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .cs-walkthrough-list {
    gap: 40px;
  }

  .cs-outcome-split-cards {
    grid-template-columns: 1fr;
  }

  .cs-testimonial-card {
    padding: 32px 24px;
  }
}
