/* ── SiteMax Case Study Pages — shared styles ── */

/* Hero with side-by-side portrait + headline */
#cs-hero {
  background: linear-gradient(160deg, #0a1628 0%, #0f2035 100%);
  padding: 5rem 5rem 4rem;
  border-bottom: 1px solid rgba(45,212,200,0.08);
}
.cs-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3.5rem;
  align-items: center;
}
.cs-hero-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0a1628;
  border: 1px solid rgba(45,212,200,0.18);
  box-shadow: 0 26px 60px rgba(0,0,0,0.5);
}
.cs-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.18s;
}
.cs-back:hover { color: var(--teal); }

.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.cs-eyebrow::before { content: ''; display: block; width: 22px; height: 2px; background: var(--teal); }

.cs-company {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text);
  margin-bottom: 1rem;
  opacity: .85;
}

.cs-h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.cs-h1 span { color: var(--teal); }

.cs-attr {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(45,212,200,0.15);
}
.cs-attr-name {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--yellow);
  letter-spacing: 0.04em;
}
.cs-attr-role { font-size: 0.78rem; color: var(--text); margin-top: 0.15rem; }

/* Company facts strip */
.cs-facts {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.75rem 5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cs-fact-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.cs-fact-value { font-size: 0.92rem; font-weight: 700; color: #fff; line-height: 1.3; }

/* Body sections — reuse art-section/art-h2/art-body from article.css */

/* Pull quote (photo optional) */
.cs-quote-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  background: rgba(45,212,200,0.05);
  border: 1px solid rgba(45,212,200,0.2);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  text-align: left;
}
.cs-quote-card:has(.cs-quote-photo) {
  grid-template-columns: 90px 1fr;
}
.cs-quote-card .cs-quote-text { text-align: left; }
.cs-quote-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(45,212,200,0.4);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}
.cs-quote-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #fff;
  font-style: italic;
  margin: 0 0 0.85rem;
}
.cs-quote-name {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yellow);
}
.cs-quote-role { font-size: 0.74rem; color: var(--text); margin-top: 0.15rem; }

/* Features chip grid */
.cs-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.cs-feat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(45,212,200,0.22);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text);
}
.cs-feat-chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* Results metrics row */
.cs-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.25rem 0 0;
}
.cs-metric {
  background: rgba(45,212,200,0.04);
  border: 1px solid rgba(45,212,200,0.15);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.cs-metric-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.cs-metric-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.3;
}

/* Outcomes list */
.cs-outcomes {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}
.cs-outcomes li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}
.cs-outcomes li::before {
  content: '';
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-top: 4px;
  background: var(--teal);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
  mask-size: contain; -webkit-mask-size: contain;
}

/* Video player */
.cs-video-wrap {
  max-width: 880px;
  margin: 2rem auto 0;
}
.cs-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(45,212,200,0.25);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.cs-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cs-video-caption {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

/* Lite YouTube — thumbnail link that swaps to embedded player on click */
.cs-lite-yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(45,212,200,0.25);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.cs-lite-yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s, filter .25s;
}
.cs-lite-yt:hover .cs-lite-yt-thumb { transform: scale(1.03); filter: brightness(1.05); }
.cs-lite-yt-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 64px;
  pointer-events: none;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.6));
  transition: transform .25s;
}
.cs-lite-yt:hover .cs-lite-yt-play { transform: translate(-50%, -50%) scale(1.06); }
.cs-lite-yt-play svg { width: 100%; height: 100%; display: block; }
.cs-lite-yt-play .cs-lite-yt-bg { fill: rgba(212, 38, 38, 0.92); transition: fill .25s; }
.cs-lite-yt:hover .cs-lite-yt-play .cs-lite-yt-bg { fill: #ff0000; }
/* Once activated by JS, swap to iframe */
.cs-lite-yt.is-active .cs-lite-yt-thumb,
.cs-lite-yt.is-active .cs-lite-yt-play { display: none; }
.cs-lite-yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive */
@media (max-width: 900px) {
  #cs-hero, .cs-facts { padding: 3.5rem 1.5rem !important; }
  .cs-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cs-hero-photo { max-width: 320px; margin: 0 auto; aspect-ratio: 1 / 1; }
  .cs-facts { grid-template-columns: repeat(2, 1fr); padding: 1.5rem 1.5rem !important; }
  .cs-metrics { grid-template-columns: 1fr; }
  .cs-outcomes { grid-template-columns: 1fr; }
  .cs-quote-card { grid-template-columns: 1fr; text-align: center; }
  .cs-quote-photo { margin: 0 auto; }
}
