/* =============================================
   SALIENT — Case Study Page Styles
   ============================================= */

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

:root {
  --pink: #FF2D78;
  --navy: #0D0E2E;
  --deep-navy: #080920;
  --white: #FFFFFF;
  --off-white: #F7F7F5;
  --light-gray: #E8E6E0;
  --mid-gray: #8A8880;
  --text-dark: #111111;
  --font-sans: 'DM Sans', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.cs-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  padding: 0 48px;
  z-index: 1000;
}

.cs-nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  transition: gap 0.3s ease, color 0.2s;
  white-space: nowrap;
}
.cs-nav-back:hover { gap: 14px; color: var(--pink); }
.cs-nav-back .arrow { transition: transform 0.3s ease; }
.cs-nav-back:hover .arrow { transform: translateX(-4px); }

.cs-nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.3s;
}
.cs-nav-logo:hover { opacity: 0.6; }

.cs-nav-right {
  margin-left: auto;
}

.btn-talk {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s ease;
  white-space: nowrap;
}
.btn-talk:hover { background: var(--pink); }

/* ===== MAIN WRAPPER ===== */
.cs-main { padding-top: var(--nav-h); }

/* ===== HERO — two column ===== */
.cs-hero {
  display: grid;
  grid-template-columns: 44fr 56fr;
  align-items: start;
}

/* ===== IMAGES (left col) ===== */
.cs-images {
  position: sticky;
  top: var(--nav-h);
  padding: 48px 20px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(100vh - var(--nav-h));
}

.cs-img-main {
  flex: 1 1 auto;
  overflow: hidden;
  min-height: 0;
}

.cs-img-main svg,
.cs-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 0 0 auto;
}

.cs-img-small {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.cs-img-small svg,
.cs-img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== CONTENT (right col) ===== */
.cs-content {
  padding: 64px 48px 80px 40px;
  border-left: 1px solid var(--light-gray);
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.cs-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #333;
}

.cs-headline {
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.cs-intro {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 48px;
  max-width: 560px;
}

.cs-divider {
  width: 100%;
  height: 1px;
  background: var(--light-gray);
  margin-bottom: 48px;
}

.cs-approach-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.cs-approach-body {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== CTA SECTION ===== */
.cs-cta {
  background: var(--deep-navy);
  padding: 120px 48px;
  text-align: center;
}

.cs-cta-headline {
  font-family: var(--font-sans);
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.cs-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 40px;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.3s ease;
}
.cs-cta-btn:hover { background: var(--pink); border-color: var(--pink); }

/* ===== FOOTER ===== */
.cs-footer {
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  padding: 64px 48px 40px;
}

.cs-footer-brand {
  margin-bottom: 6px;
}
.cs-footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cs-footer-logo svg { flex-shrink: 0; }

.cs-footer-divider {
  width: 40px;
  height: 3px;
  background: var(--text-dark);
  margin-bottom: 52px;
}

.cs-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 32px;
}

.cs-footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.cs-footer-col a {
  display: block;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.cs-footer-col a:hover { color: var(--pink); }

.cs-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cs-footer-social {
  display: flex;
  gap: 10px;
}

.cs-footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s;
}
.cs-footer-social a:hover { border-color: var(--pink); color: var(--pink); }

.cs-footer-legal {
  display: flex;
  gap: 28px;
}

.cs-footer-legal a {
  font-size: 12px;
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.2s;
}
.cs-footer-legal a:hover { color: var(--text-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .cs-hero {
    grid-template-columns: 1fr;
  }

  .cs-images {
    position: static;
    height: auto;
    padding: 40px 24px 0;
    gap: 8px;
  }

  .cs-img-main {
    aspect-ratio: 16/9;
    flex: none;
  }

  .cs-img-main svg { height: 100%; }

  .cs-content {
    padding: 48px 24px 64px;
    border-left: none;
    border-top: 1px solid var(--light-gray);
  }

  .cs-nav { padding: 0 24px; }

  .cs-cta { padding: 80px 24px; }

  .cs-footer {
    padding: 48px 24px 32px;
  }

  .cs-footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .cs-footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .cs-nav-logo { display: none; }

  .cs-footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cs-footer-legal {
    flex-wrap: wrap;
    gap: 14px;
  }

  .cs-headline { font-size: clamp(20px, 6vw, 28px); }

  .cs-img-row { gap: 4px; }
  .cs-images { gap: 4px; }
}
