/* ============================================================
   REGAL SYSTEMS – CASE STUDY STYLES
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.cs-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0f1a3a;
}
.cs-hero__cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.72;
  transition: opacity 0.4s;
}
.cs-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show full image, no cropping */
  object-position: center;
  display: block;
}
.cs-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,20,54,0.97) 0%, rgba(11,20,54,0.6) 45%, rgba(11,20,54,0.3) 100%);
}
.cs-hero__content {
  position: relative;
  z-index: 2;
  padding: 48px 0 52px;
  max-width: 820px;
}
.cs-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.cs-hero__back:hover { color: white; }
.cs-hero__cat {
  display: block;           /* own line, full break from back link */
  width: fit-content;
  background: rgba(37,99,235,0.25);
  border: 1px solid rgba(37,99,235,0.5);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-top: 20px;
  margin-bottom: 16px;
}
.cs-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 18px;
}
.cs-hero__tagline {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 36px;
}

/* Quick stats bar */
.cs-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
}
.cs-stat {
  padding-right: 36px;
  margin-right: 36px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.cs-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.cs-stat__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 5px;
}
.cs-stat__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
}

/* ── Body Layout ───────────────────────────────────────────── */
.cs-body {
  background: #f8fafc;
}
.cs-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 64px 0 80px;
}

/* ── Main Content ──────────────────────────────────────────── */
.cs-main { min-width: 0; }

.cs-section {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 36px;
  margin-bottom: 28px;
}
.cs-section__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 10px;
}
.cs-section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}
.cs-section p {
  font-size: 15px;
  color: #475569;
  line-height: 1.75;
}

/* Features list */
.cs-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #334155;
  line-height: 1.6;
}
.cs-features li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: #2563eb;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Tech stack pills */
.cs-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cs-tech span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a7a;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: 100px;
}

/* Results */
.cs-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.cs-result-card {
  background: linear-gradient(135deg, #1B3A7A 0%, #2563eb 100%);
  border-radius: 12px;
  padding: 20px;
  color: white;
  text-align: center;
}
.cs-result-card__icon { font-size: 26px; margin-bottom: 8px; }
.cs-result-card__text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.9;
}

/* Testimonial */
.cs-testimonial {
  background: linear-gradient(135deg, #0f1a3a 0%, #1B3A7A 100%);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 28px;
  position: relative;
}
.cs-testimonial__quote-icon {
  font-size: 64px;
  line-height: 1;
  color: rgba(255,255,255,0.12);
  font-family: Georgia, serif;
  position: absolute;
  top: 20px;
  left: 30px;
}
.cs-testimonial__text {
  font-size: 18px;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.cs-testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}
.cs-testimonial__name {
  font-weight: 700;
  color: white;
  font-size: 15px;
}
.cs-testimonial__role {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.cs-testimonial__stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.cs-sidebar { position: sticky; top: 100px; }

.cs-sidebar-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 28px;
  margin-bottom: 20px;
}
.cs-sidebar-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 18px;
}
.cs-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cs-meta-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.cs-meta-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cs-meta__key {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
}
.cs-meta__val {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

/* Store links in sidebar */
.cs-store-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cs-store-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.cs-store-btn--apple {
  background: #000;
  color: white;
}
.cs-store-btn--google {
  background: white;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
}
.cs-store-btn--web {
  background: linear-gradient(135deg, #1B3A7A, #2563eb);
  color: white;
}
.cs-store-btn__icon { font-size: 20px; flex-shrink: 0; }
.cs-store-btn__text { display: flex; flex-direction: column; }
.cs-store-btn__sub { font-size: 10px; font-weight: 400; opacity: 0.7; }
.cs-store-btn__main { font-size: 14px; font-weight: 700; }

/* CTA card */
.cs-cta-card {
  background: linear-gradient(135deg, #1B3A7A 0%, #2563eb 100%);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.cs-cta-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.cs-cta-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
  line-height: 1.5;
}
.cs-cta-card .btn {
  background: white;
  color: #1B3A7A;
  font-size: 13px;
  padding: 10px 22px;
  width: 100%;
  justify-content: center;
}
.cs-cta-card .btn:hover { background: #f0f7ff; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cs-layout {
    grid-template-columns: 1fr;
  }
  .cs-sidebar { position: static; }
}
@media (max-width: 600px) {
  .cs-hero__content { padding: 40px 0 36px; }
  .cs-section { padding: 24px; }
  .cs-stats { gap: 16px; }
  .cs-stat { border-right: none; padding-right: 0; margin-right: 0; }
}
