/* Match the established case-study layout without affecting other site pages. */
.ep-case {
  --navy: #212445;
  --green: #e0ebd0;
  --muted: #5d6075;
  --line: #d9dbe3;
  --section: 56px;
  font-family: "UncutSans-Regular", "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 56px;
  box-sizing: border-box;
}
.ep-case *, .ep-case *::before, .ep-case *::after { box-sizing: inherit; }
.ep-case p, .ep-case a { font-size: inherit; }
/* The master stylesheet sets a global paragraph size with !important. */
.ep-case p { font-size: inherit !important; }
.ep-case p { margin: 0 0 1.1em; }
.ep-case p:last-child { margin-bottom: 0; }
.ep-case h1, .ep-case h2, .ep-case h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.ep-case h2 { font-size: 1.875rem; margin-bottom: 18px; }
.ep-case img { display: block; max-width: 100%; height: auto; }
.ep-case figure { margin: 0; }
.ep-case section { margin-top: var(--section); }
.ep-case .ep-breadcrumb { margin-bottom: 24px; }
.ep-case .ep-breadcrumb a, .ep-case p a, .ep-case dd a { color: inherit; text-underline-offset: 3px; }
.ep-case a:focus-visible { outline: 3px solid #468334; outline-offset: 5px; }

.ep-case .ep-hero { background: var(--navy); color: #fff; border-radius: 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding: 56px; align-items: center; margin-bottom: 32px; }
.ep-case .ep-tag { display: inline-block; background: var(--green); color: var(--navy); font-size: .875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; margin-bottom: 24px; }
.ep-case .ep-hero h1 { color: #fff; font-size: 3.5rem; margin-bottom: 20px; }
.ep-case .ep-hero .ep-lead { font-size: 1.375rem !important; line-height: 1.4; font-weight: 500; margin-bottom: 20px; }
.ep-case .ep-hero p { color: rgba(255,255,255,.85); }
.ep-case .ep-hero-img { min-width: 0; }
.ep-case .ep-hero-img img { width: 100%; border-radius: 16px; }

.ep-case .ep-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ep-case .ep-stat { background: var(--green); border-radius: 16px; padding: 22px 24px; }
.ep-case .ep-stat strong { display: block; font-size: 3rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; }
.ep-case .ep-stat span { font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; }

.ep-case .ep-details { border: 1px solid var(--line); border-radius: 16px; padding: 20px 28px; margin-top: 32px; }
.ep-case .ep-details dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 0; }
.ep-case .ep-details dl > div { padding: 0 24px; border-left: 1px solid var(--line); }
.ep-case .ep-details dl > div:first-child { border-left: 0; padding-left: 0; }
.ep-case .ep-details dt { font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ep-case .ep-details dd { margin: 0; font-size: 1rem; line-height: 1.5; }

.ep-case .ep-photos { display: flex; gap: 20px; }
.ep-case .ep-photos figure { min-width: 0; }
.ep-case .ep-photos img { width: 100%; border-radius: 16px; }
.ep-case .ep-photos figcaption { font-size: .875rem; line-height: 1.45; color: var(--muted); margin-top: 10px; }

.ep-case .ep-result { background: var(--green); border-radius: 24px; padding: 56px; }
.ep-case .ep-cta { background: var(--navy); color: #fff; border-radius: 20px; padding: 36px 40px; margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ep-case .ep-cta small { display: block; color: #fff; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.ep-case .ep-cta h3 { color: #fff; font-size: 1.75rem; margin-bottom: 8px; }
.ep-case .ep-cta p { color: rgba(255,255,255,.85); font-size: 1rem !important; }
.ep-case .ep-cta-actions { text-align: center; flex-shrink: 0; }
.ep-case .ep-btn { display: inline-block; background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; padding: 14px 28px; border-radius: 999px; }
.ep-case .ep-btn:hover { background: var(--green); }
.ep-case .ep-cta-actions a.ep-tel { display: block; color: #fff; font-size: .875rem; margin-top: 10px; text-decoration: none; }
.ep-case .ep-cta a:focus-visible { outline-color: var(--green); }

@media (max-width: 900px) {
  .ep-case .ep-hero { grid-template-columns: 1fr; gap: 32px; }
  .ep-case .ep-hero, .ep-case .ep-result { padding: 32px 24px; }
  .ep-case .ep-hero h1 { font-size: 2.5rem; }
  .ep-case .ep-hero-img { width: 100%; max-width: 420px; margin: 0 auto; }
  .ep-case .ep-details { padding: 20px 24px; }
  .ep-case .ep-details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .ep-case .ep-details dl > div { border-left: 0; padding: 0; }
  .ep-case .ep-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .ep-case .ep-cta-actions { text-align: left; }
}
@media (max-width: 600px) {
  .ep-case { font-size: 1rem; padding: 0 16px 40px; --section: 40px; }
  .ep-case .ep-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-case .ep-stat:last-child { grid-column: 1 / -1; }
  .ep-case .ep-stat strong { font-size: 2.5rem; }
  .ep-case .ep-photos { flex-direction: column; }
  .ep-case .ep-photos figure { flex: none !important; }
  .ep-case .ep-details dl { grid-template-columns: 1fr; }
  .ep-case .ep-cta { padding: 24px 18px; }
  .ep-case .ep-cta-actions { flex-shrink: 1; max-width: 100%; }
  .ep-case .ep-btn { padding: 14px 20px; }
}
