/* ----------------------------------------------------------------
   Case Study Landing Page
   – Standalone design system for /case-studies/ pages.
   – Not shared with the main site stylesheet: these pages are
     ad-landing destinations with their own header-free, footer-only
     layout, separate from site nav/branding.
   ---------------------------------------------------------------- */
:root {
  --cs-cream: #f8f6f1;
  --cs-cream-alt: #edeae4;
  --cs-navy: #1d3557;
  --cs-navy-hover: #2b4a73;
  --cs-muted: #4a6074;
  --cs-light: #8a9aaa;
  --cs-gold: #c9a84c;
}

.case-study * { box-sizing: border-box; margin: 0; padding: 0; }

.case-study {
  background: var(--cs-cream);
  color: var(--cs-navy);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

.case-study h1,
.case-study h2,
.case-study h3,
.case-study .serif {
  font-family: 'Playfair Display', serif;
  color: var(--cs-navy);
  font-weight: 600;
  line-height: 1.2;
}

.case-study a { color: var(--cs-navy); }

.case-study .wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

.case-study .wrap-wide {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Eyebrow label */
.case-study .eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--cs-gold);
  margin-bottom: 18px;
}

/* Fixed home link — subtle way back to the main site while scrolling */
.case-study .cs-home-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: rgba(248, 246, 241, 0.92);
  border: 1px solid #e2ddd0;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(29, 53, 87, 0.08);
  backdrop-filter: blur(4px);
  transition: box-shadow .2s ease, transform .2s ease;
}
.case-study .cs-home-link:hover {
  box-shadow: 0 4px 14px rgba(29, 53, 87, 0.14);
  transform: translateY(-1px);
}
.case-study .cs-home-logo {
  height: 22px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .case-study .cs-home-link { top: 14px; left: 14px; padding: 6px 10px; }
  .case-study .cs-home-logo { height: 18px; }
}

/* ---------- HERO ---------- */
.case-study .hero {
  padding: 110px 0 90px;
  text-align: center;
  position: relative;
}
.case-study .hero .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.case-study .hero .eyebrow::before,
.case-study .hero .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--cs-gold);
  opacity: .7;
}
.case-study .hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.case-study .hero .dek {
  font-size: 18px;
  color: var(--cs-muted);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  max-width: 560px;
  margin: 0 auto 52px;
}

/* Price gap signature visual */
.case-study .price-gap {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 32px 30px;
  background: #ffffffaa;
  border: 1px solid #e2ddd0;
  border-radius: 2px;
}
.case-study .price-gap-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cs-light);
  font-weight: 600;
  margin-bottom: 22px;
}
.case-study .gap-track {
  position: relative;
  height: 10px;
  background: var(--cs-cream-alt);
  border-radius: 5px;
  margin: 0 10px 14px;
}
.case-study .gap-fill-comp {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--cs-light);
  border-radius: 5px 0 0 5px;
}
.case-study .gap-fill-new {
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  background: var(--cs-gold);
  border-radius: 0 5px 5px 0;
}
.case-study .gap-marker {
  position: absolute;
  top: -26px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cs-navy);
  white-space: nowrap;
}
.case-study .gap-marker.comp { transform: translateX(-100%); color: var(--cs-muted); }
.case-study .gap-marker.new { right: 0; color: var(--cs-navy); }
.case-study .gap-callout {
  text-align: center;
  margin-top: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--cs-navy);
}
.case-study .gap-callout strong { color: var(--cs-gold); }

.case-study .hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 44px;
}
.case-study .hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--cs-navy);
}
.case-study .hero-stat .lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cs-muted);
  margin-top: 4px;
}

/* About the agent */
.case-study .about-agent {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  align-items: start;
}
.case-study .about-agent img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(8%);
}
.case-study .about-agent .a-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 2px;
}
.case-study .about-agent .a-title {
  font-size: 12.5px;
  color: var(--cs-gold);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-bottom: 16px;
}
.case-study .about-agent p {
  font-size: 15px;
  margin-bottom: 14px;
}
.case-study .about-agent p:last-of-type { margin-bottom: 0; }
.case-study .about-agent .a-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--cs-navy);
  font-size: 15.5px;
  border-left: 2px solid var(--cs-gold);
  padding-left: 16px;
  margin: 16px 0;
}
.case-study .about-agent .a-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--cs-gold);
  font-size: 18px;
  line-height: 1.5;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #ddd6c7;
}

/* ---------- SECTIONS ---------- */
.case-study section { padding: 64px 0; }
.case-study section.alt { background: var(--cs-cream-alt); }
.case-study section h2 { font-size: 28px; margin-bottom: 26px; }
.case-study section p { color: var(--cs-muted); font-size: 16px; margin-bottom: 18px; }
.case-study section p:last-child { margin-bottom: 0; }
.case-study .lede { font-size: 18px; color: var(--cs-navy); }

/* Photo feature */
.case-study .photo-feature {
  max-width: 920px;
  margin: 0 auto;
}
.case-study .photo-feature img {
  width: 100%;
  display: block;
  border-radius: 2px;
}
.case-study .photo-caption {
  font-size: 12px;
  color: var(--cs-light);
  text-align: center;
  margin-top: 14px;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

/* Pull quote */
.case-study blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--cs-navy);
  border-left: 3px solid var(--cs-gold);
  padding-left: 24px;
  margin: 34px 0;
  line-height: 1.5;
}

/* Marketing grid */
.case-study .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #e2ddd0;
  border: 1px solid #e2ddd0;
  margin-top: 36px;
}
.case-study .grid-item { background: var(--cs-cream); padding: 28px 26px; }
.case-study .grid-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.case-study .grid-item p { font-size: 14.5px; margin-bottom: 0; }

/* Timeline */
.case-study .timeline {
  margin-top: 40px;
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--cs-cream-alt);
}
.case-study .t-item { position: relative; padding-bottom: 34px; }
.case-study .t-item:last-child { padding-bottom: 0; }
.case-study .t-item::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cs-gold);
  border: 2px solid var(--cs-cream);
  box-shadow: 0 0 0 2px var(--cs-gold);
}
.case-study .t-time {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cs-gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.case-study .t-item p { margin-bottom: 0; }

/* Outcome */
.case-study .outcome-block {
  text-align: center;
  padding: 56px 40px;
  background: var(--cs-navy);
  border-radius: 2px;
}
.case-study .outcome-block .eyebrow { color: var(--cs-gold); }
.case-study .outcome-block h2 { color: var(--cs-cream); font-size: 26px; max-width: 620px; margin: 0 auto 18px; }
.case-study .outcome-block p { color: #cfd8e2; max-width: 560px; margin: 0 auto; }

/* Lessons */
.case-study .lessons { list-style: none; margin-top: 36px; }
.case-study .lessons li {
  padding: 22px 0;
  border-top: 1px solid #ddd6c7;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
}
.case-study .lessons li:last-child { border-bottom: 1px solid #ddd6c7; }
.case-study .lessons .l-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--cs-navy);
  font-size: 15.5px;
  line-height: 1.4;
}
.case-study .lessons p { font-size: 15px; margin-bottom: 0; }

/* CTA */
.case-study .cta { text-align: center; padding: 90px 0 100px; }
.case-study .cta h2 { font-size: 30px; max-width: 600px; margin: 0 auto 20px; }
.case-study .cta p { max-width: 560px; margin: 0 auto 36px; }
.case-study .cta-line {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--cs-navy);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.case-study .btn {
  display: inline-block;
  background: var(--cs-navy);
  color: var(--cs-cream);
  text-decoration: none;
  padding: 16px 36px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 2px;
  transition: background .2s ease;
}
.case-study .btn:hover { background: var(--cs-navy-hover); }

/* Footer */
.case-study footer {
  background: var(--cs-navy);
  color: #cfd8e2;
  padding: 48px 0;
  text-align: center;
  font-size: 14px;
}
.case-study footer .name { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--cs-cream); margin-bottom: 6px; }
.case-study footer .title { color: var(--cs-gold); font-size: 13px; margin-bottom: 16px; letter-spacing: .02em; }
.case-study footer .details { color: #a8b6c4; line-height: 1.9; }
.case-study footer a { color: #cfd8e2; text-decoration: none; }
.case-study footer a:hover { color: var(--cs-gold); }

@media (max-width: 640px) {
  .case-study .hero { padding: 80px 0 60px; }
  .case-study .hero-stats { gap: 28px; flex-wrap: wrap; }
  .case-study .grid { grid-template-columns: 1fr; }
  .case-study .lessons li { grid-template-columns: 1fr; gap: 8px; }
  .case-study .price-gap { padding: 28px 20px; }
  .case-study .outcome-block { padding: 44px 24px; }
  .case-study .about-agent { grid-template-columns: 1fr; }
  .case-study .about-agent img { max-width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .case-study { scroll-behavior: auto; }
}
