/* Shared styles for case study pages */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold:  #E6B16D;
  --cream: #F9E5CC;
  --blue:  #6C909E;
  --peach: #EFA681;
  --text:  #3a3028;
  --muted: #75655a;
  --gold-text: #966424;
  --blue-dark: #557885;
  /* SummariT&C brand, used for product moments */
  --st-green: #1E3530;
  --st-sage:  #B7CFC4;
  --st-gold:  #E3B95C;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #fdf6ee;
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: var(--cream);
  border-bottom: 1px solid rgba(234, 189, 134, 0.3);
  padding: 0 5%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}

nav { display: flex; gap: 2.5rem; }

nav a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

nav a:hover { color: var(--peach); }

/* ── LAYOUT ── */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 6%;
}

.narrow { max-width: 720px; }

section { padding: 5rem 0; }

.section-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

h2 em { font-style: italic; color: var(--blue); }

h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

p {
  font-weight: 300;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

p + p { margin-top: 1rem; }

p strong { font-weight: 500; color: var(--text); }

.back-link {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--peach); }

/* ── HERO ── */
.cs-hero { padding: 9rem 0 3rem; }

.cs-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.cs-hero h1 em { font-style: italic; color: var(--blue); }

.cs-lede {
  font-size: 1.15rem;
  max-width: 640px;
}

.cs-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background-color: var(--blue-dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  transition: background-color 0.25s, color 0.25s, transform 0.2s;
}

.btn-primary:hover {
  background-color: var(--peach);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-secondary {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.btn-secondary:hover { color: var(--peach); }

.cover {
  margin-top: 3.5rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(30, 53, 48, 0.45);
}

/* ── META ROW ── */
.meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(230, 177, 109, 0.35);
  border-bottom: 1px solid rgba(230, 177, 109, 0.35);
}

.meta h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.5rem;
}

.meta p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

/* ── CALLOUTS ── */
.stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: center;
  margin: 2.5rem 0;
  padding: 2rem 2.2rem;
  background-color: #fff;
  border-radius: 20px;
  border: 1px solid rgba(230, 177, 109, 0.3);
}

.stat strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--peach);
}

.stat p { font-size: 0.95rem; }

.stat small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.85;
}

.hmw {
  margin-top: 2.5rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--text);
}

.hmw span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.6rem;
}

/* ── FIGURES ── */
figure { margin: 2.5rem 0; }

figure img {
  border-radius: 16px;
  border: 1px solid rgba(58, 48, 40, 0.08);
}

figcaption {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

figcaption b { font-weight: 500; color: var(--text); }

.fig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.fig-grid figure { margin: 0; }

.tinted {
  background-color: rgba(249, 229, 204, 0.5);
  border-top: 1px solid rgba(230, 177, 109, 0.25);
  border-bottom: 1px solid rgba(230, 177, 109, 0.25);
}

/* ── 2023 CRITIQUE ── */
.notes {
  list-style: none;
  margin-top: 1rem;
}

.notes li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.notes li::before {
  position: absolute;
  left: 0;
  font-weight: 500;
}

.notes .keep::before { content: '+'; color: #6f8a3a; }
.notes .fix::before  { content: '–'; color: #c0582c; }

/* ── DECISIONS ── */
.decision {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding: 2.2rem 0;
  border-top: 1px solid rgba(230, 177, 109, 0.3);
}

.decision:first-of-type { border-top: none; }

.decision-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--peach);
}

.decision p { font-size: 0.95rem; }

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.before-after div {
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
}

.before-after b {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.ba-before { background-color: #fff; border: 1px dashed rgba(117, 101, 90, 0.35); color: var(--muted); }
.ba-after  { background-color: var(--st-green); color: #eff4ed; }
.ba-after b { color: var(--st-gold); }

/* ── PRODUCT DEMO EMBED ── */
.product-band {
  background-color: var(--st-green);
  color: #eff4ed;
}

.product-band h2 { color: #eff4ed; }
.product-band h2 em { color: var(--st-sage); }
.product-band p { color: rgba(239, 244, 237, 0.78); }
.product-band .section-tag { color: var(--st-gold); }

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 2.5rem 0;
  list-style: none;
  counter-reset: step;
}

.flow li {
  counter-increment: step;
  padding: 1.4rem;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(183, 207, 196, 0.2);
}

.flow li::before {
  content: '0' counter(step);
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--st-gold);
  margin-bottom: 0.6rem;
}

.flow b { display: block; font-weight: 500; margin-bottom: 0.3rem; }
.flow span { font-size: 0.85rem; font-weight: 300; color: rgba(239, 244, 237, 0.75); line-height: 1.6; }

.embed {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(183, 207, 196, 0.25);
  background-color: #111;
}

.embed-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background-color: #2a2d2b;
  font-size: 0.75rem;
  color: rgba(239, 244, 237, 0.7);
}

.embed-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background-color: rgba(239, 244, 237, 0.25);
}

.embed-bar span { margin-left: 0.6rem; }

.embed iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
}

.embed-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
}

.embed-note a { color: var(--st-sage); }

.product-band figure img { border-color: rgba(183, 207, 196, 0.2); }
.product-band figcaption { color: rgba(239, 244, 237, 0.7); }
.product-band figcaption b { color: #eff4ed; }

/* ── OUTCOME ── */
.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.outcomes div {
  padding: 1.6rem;
  background-color: #fff;
  border-radius: 18px;
  border: 1px solid rgba(230, 177, 109, 0.3);
}

.outcomes p { font-size: 0.9rem; }

.next-list {
  margin-top: 1rem;
  padding-left: 1.1rem;
}

.next-list li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
}

.next-list li::marker { color: var(--peach); }

/* ── FOOTER NAV ── */
.cs-footer {
  padding: 4rem 0 6rem;
  text-align: center;
}

.cs-footer p { margin-bottom: 1.4rem; }

/* ── BLUSHES (soft pink glows, spread evenly down the page) ── */
body { position: relative; }

.blushes {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blushes span {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 204, 0.25) 0%, transparent 70%);
  transform: translate(-50%, -50%);
}

.blushes span:nth-child(odd)  { left: 6%; }
.blushes span:nth-child(even) { left: 92%; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .meta { grid-template-columns: 1fr 1fr; }
  .fig-grid, .before-after, .outcomes { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .embed iframe { height: 640px; }
}

@media (max-width: 600px) {
  nav { gap: 1.2rem; }
  nav a { font-size: 0.7rem; }
  section { padding: 3.5rem 0; }
  .cs-hero { padding-top: 7rem; }
  .flow { grid-template-columns: 1fr; }
  .decision { grid-template-columns: 1fr; gap: 0.6rem; }
  .stat { grid-template-columns: 1fr; gap: 0.8rem; padding: 1.6rem; }
  .embed iframe { height: 560px; }
}
