/* ============================================================
   CASE STUDY — SHARED STYLES
   All 5 case study pages link to this file.
============================================================ */

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

:root {
  --accent:        #3462e3;
  --accent-hover:  #2650c8;
  --accent-light:  #eaeffd;
  --text-primary:  #09090f;
  --text-sec:      #4c4c5e;
  --text-muted:    #8888a0;
  --bg-white:      #ffffff;
  --bg-gray:       #f4f4f7;
  --border:        #e2e2ea;
  --shadow:        0 2px 24px rgba(10,10,30,.08);
  --container:     1100px;
  --nav-h:         68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-sec);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.022em;
  line-height: 1.15;
}

h1 { font-size: clamp(32px, 5vw, 58px); }
h2 { font-size: clamp(22px, 3.2vw, 36px); }

p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Container ────────────────────────────────────────────── */
.cs-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Nav ──────────────────────────────────────────────────── */
.cs-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 18px rgba(10,10,30,.05);
  z-index: 100;
}

.cs-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  transition: color .2s;
}
.cs-back:hover { color: var(--accent); }
.cs-back svg { width: 16px; height: 16px; }

.cs-nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.cs-nav-logo em { font-style: normal; color: var(--accent); }

.cs-contact-btn {
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  transition: background .2s;
}
.cs-contact-btn:hover { background: var(--accent-hover); }

/* ── Hero ─────────────────────────────────────────────────── */
.cs-hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 0;
  background: var(--bg-white);
}

.cs-hero--dark {
  background: #0d1b2a;
}

.cs-hero--dark h1,
.cs-hero--dark .cs-hero-sub { color: #fff; }
.cs-hero--dark .cs-hero-sub { color: rgba(255,255,255,.72); }

.cs-hero .cs-container { padding-bottom: 52px; }

.cs-hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cs-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 20px;
}

.cs-tag--light {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.88);
}

.cs-hero-title { margin-bottom: 20px; }

.cs-hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-sec);
  max-width: 600px;
  line-height: 1.65;
  font-weight: 400;
}

.cs-hero-img-wrap {
  width: 100%;
  max-height: 540px;
  overflow: hidden;
  background: var(--bg-gray);
}

.cs-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Section ──────────────────────────────────────────────── */
.cs-section {
  padding: 88px 0;
}

.cs-section--gray { background: var(--bg-gray); }

.cs-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ── Overview grid ────────────────────────────────────────── */
.cs-overview-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 72px;
  align-items: start;
}

.cs-overview-text h2 { margin-bottom: 24px; }

/* Detail card */
.cs-detail-card {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.cs-detail-card--dark {
  background: #0d1b2a;
  border-color: rgba(255,255,255,.10);
}

.cs-detail-logo {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.cs-detail-logo img { width: 100%; height: 100%; object-fit: contain; }

.cs-detail-logo--dark {
  background: #0d1b2a;
  border-color: rgba(255,255,255,.15);
  padding: 2px;
}

.cs-detail-list { display: flex; flex-direction: column; gap: 14px; }

.cs-detail-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-sec);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-detail-card--dark .cs-detail-list li { color: rgba(255,255,255,.65); }

.cs-detail-list li span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.cs-detail-card--dark .cs-detail-list li span { color: rgba(52,98,227,.9); }

/* ── Two col ──────────────────────────────────────────────── */
.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.cs-two-col h2 { margin-bottom: 20px; }

/* ── Gallery ──────────────────────────────────────────────── */
.cs-gallery-section { padding: 0; background: var(--bg-gray); }
.cs-gallery-section--dark { background: #0d1b2a; }

.cs-gallery-full {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cs-gallery-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.cs-gallery-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cs-gallery-img--logo {
  object-fit: contain;
  padding: 48px;
  background: var(--bg-gray);
}

/* ── Results ──────────────────────────────────────────────── */
.cs-results h2 { margin-bottom: 20px; }
.cs-results > p { max-width: 760px; margin-bottom: 40px; }

.cs-result-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cs-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid #c5d8f9;
  padding: 8px 16px;
  border-radius: 20px;
  letter-spacing: -0.01em;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cs-cta {
  background: var(--accent);
  padding: 100px 0;
}

.cs-cta h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cs-cta p {
  color: rgba(255,255,255,.75);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 40px;
}

.cs-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .18s, transform .18s;
  text-decoration: none;
}

.cs-btn:hover { opacity: .88; transform: translateY(-2px); }

.cs-btn-whatsapp { background: #25D366; color: #fff; }

.cs-btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
}

/* ── Footer ───────────────────────────────────────────────── */
.cs-footer {
  background: var(--text-primary);
  padding: 36px 0;
}

.cs-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

.cs-footer-inner a {
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.cs-footer-inner a:hover { color: rgba(255,255,255,.88); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .cs-container { padding: 0 24px; }
  .cs-overview-grid { grid-template-columns: 1fr; gap: 48px; }
  .cs-detail-card { position: static; }
  .cs-two-col { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .cs-section { padding: 60px 0; }
  .cs-gallery-two { grid-template-columns: 1fr; }
  .cs-gallery-img { height: 240px; }
  .cs-nav-logo { display: none; }
  .cs-footer-inner { flex-direction: column; text-align: center; }
}
