/* ═══════════════════════════════════════════════════════════════
   LEANDIGI DESIGN SYSTEM — CASE STUDIES & BLOG PAGE STYLES
   Visual style: Warm light editorial aesthetic (#fdfbf7),
   gold accents, high-contrast typography, premium card layouts,
   distinct section divisions, and dark mode bottom CTA banner.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #fafafa;
  --white: #ffffff;
  --ink: #17130b;
  --muted: #665f55;
  --gold: #efc334;
  --gold-dark: #d99f16;
  --gold-badge: #faecc1;
  --gold-glow: rgba(239, 195, 52, 0.28);
  --line: rgba(23, 19, 11, .14);
  --dark-bg: #111319;
  --container: 1280px;
  --pad: clamp(20px, 3vw, 32px);
  --radius: 24px;
  --font-main: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

html {
  font-family: var(--font-main);
  background-color: #fdfbf7;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fdfbf7;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   BACKGROUND & DECORATIVE GRAPHICS
   ═══════════════════════════════════════════════════════════════ */
.cases-page-wrap {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: calc(106px + clamp(32px, 4vw, 56px));
  padding-bottom: clamp(60px, 8vw, 110px);
  background: 
    radial-gradient(circle at 85% 10%, rgba(246, 230, 185, 0.45) 0%, rgba(253, 251, 247, 0) 55%),
    radial-gradient(circle at 10% 40%, rgba(248, 237, 203, 0.32) 0%, rgba(253, 251, 247, 0) 45%),
    radial-gradient(circle at 80% 75%, rgba(246, 230, 185, 0.25) 0%, rgba(253, 251, 247, 0) 50%),
    #fdfbf7;
  overflow: hidden;
}

/* Concentric circular watermark arcs */
.bg-decorative-arcs {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 1;
}

.arc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(239, 195, 52, 0.22);
}

.arc-ring-1 {
  width: 320px;
  height: 320px;
  top: 140px;
  right: 140px;
}

.arc-ring-2 {
  width: 480px;
  height: 480px;
  top: 60px;
  right: 60px;
  border-color: rgba(239, 195, 52, 0.16);
}

.arc-ring-3 {
  width: 640px;
  height: 640px;
  top: -20px;
  right: -20px;
  border-color: rgba(239, 195, 52, 0.1);
}

/* Main Container (Unified 1280px + clamp padding) */
.cases-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Common Section Kickers & Headings */
.section-kicker {
  display: inline-block;
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-heading {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 1: HERO HEADER
   ═══════════════════════════════════════════════════════════════ */
.cases-hero-section {
  position: relative;
  padding-bottom: clamp(16px, 2.5vw, 32px);
}

.cases-header {
  text-align: center;
  max-width: min(100%, 1180px);
  margin-inline: auto;
  margin-bottom: 0;
}

.cases-kicker {
  display: inline-block;
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cases-title {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 3.2vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.cases-subtitle {
  margin: 0 auto;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.68;
  max-width: 740px;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 2: STANDALONE FEATURED ARTICLE SECTION
   ═══════════════════════════════════════════════════════════════ */
.featured-case-section {
  position: relative;
  padding: clamp(30px, 4vw, 50px) 0 clamp(40px, 5vw, 60px);
}

.section-badge-header {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.section-badge-header .section-heading {
  margin-bottom: 0;
}

.featured-case-wrap {
  width: 100%;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 3.2vw, 44px);
  padding: clamp(20px, 2.5vw, 32px);
  background: var(--white);
  border-radius: 28px;
  border: 1px solid rgba(23, 19, 11, 0.08);
  box-shadow: 0 20px 50px rgba(23, 19, 11, 0.06);
  overflow: hidden;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(23, 19, 11, 0.09);
}

.featured-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 536;
  border-radius: 20px;
  overflow: hidden;
  background: #0f1015;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: block;
}

.featured-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1024 / 536;
  object-fit: cover;
  display: block;
}

.featured-badge-pill {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(17, 19, 25, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  z-index: 2;
}

.featured-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.article-meta-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  color: #7a5e1b;
  background: var(--gold-badge);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.article-read-meta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.featured-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.28;
}

.featured-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.featured-title a:hover {
  color: var(--gold-dark);
}

.featured-desc {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.68;
}

.featured-metrics-row {
  display: flex;
  gap: 14px;
  margin: 4px 0;
  flex-wrap: wrap;
}

.featured-metric-badge {
  background: rgba(239, 195, 52, 0.12);
  border: 1px solid rgba(239, 195, 52, 0.3);
  padding: 10px 18px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.featured-metric-badge strong {
  font-size: 1.32rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}

.featured-metric-badge span {
  font-size: 0.76rem;
  color: #554e44;
  font-weight: 600;
  margin-top: 2px;
}

.featured-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(23, 19, 11, 0.05);
  color: #4b463f;
  transition: background 0.2s ease;
}

.featured-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.primary-case-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(239, 195, 52, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-case-btn:hover {
  background: #f4ca3b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 195, 52, 0.45);
}

.primary-case-btn .arrow-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.12);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.primary-case-btn:hover .arrow-dot {
  transform: translateX(3px);
}

.case-secondary-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(23, 19, 11, 0.14);
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.case-secondary-btn:hover {
  background: rgba(23, 19, 11, 0.04);
  border-color: rgba(23, 19, 11, 0.3);
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 3: ALL ARTICLES & CASE STUDIES (ARCHIVE)
   ═══════════════════════════════════════════════════════════════ */
.articles-archive-section {
  position: relative;
  padding: clamp(50px, 6vw, 76px) 0 clamp(60px, 7vw, 90px);
  border-top: 1px solid rgba(23, 19, 11, 0.08);
}

.archive-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.archive-header-left {
  max-width: 700px;
}

.archive-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.6;
}

.articles-count-note {
  font-size: 0.88rem;
  font-weight: 600;
  color: #7a5e1b;
  background: var(--gold-badge);
  padding: 6px 16px;
  border-radius: 999px;
  align-self: flex-start;
}

/* Category Filter Tabs */
.filter-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 44px);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(23, 19, 11, 0.12);
  color: #38342f;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(239, 195, 52, 0.35);
}

.filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

/* Articles Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.case-card {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid rgba(23, 19, 11, 0.08);
  box-shadow: 0 16px 36px rgba(23, 19, 11, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(23, 19, 11, 0.08);
}

.case-card.hidden {
  display: none !important;
}

.case-media-link {
  display: block;
  overflow: hidden;
  position: relative;
}

.case-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 536;
  background: #0f1015;
  overflow: hidden;
}

.case-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1024 / 536;
  object-fit: cover;
  display: block;
}

.card-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #7a5e1b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.case-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
}

.article-separator {
  color: rgba(23, 19, 11, 0.25);
}

.case-title {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.35;
}

.case-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.case-title a:hover {
  color: var(--gold-dark);
}

.case-desc {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 19, 11, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.read-more-link .arrow-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0a0a;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.read-more-link:hover {
  color: var(--gold-dark);
}

.read-more-link:hover .arrow-dot {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 4: BOTTOM CTA SECTION (DARK MODE BANNER)
   ═══════════════════════════════════════════════════════════════ */
.cases-cta-section {
  position: relative;
  padding-top: clamp(20px, 3vw, 40px);
}

.cases-cta-card {
  background: var(--dark-bg);
  border-radius: 30px;
  padding: clamp(48px, 6vw, 76px) clamp(24px, 5vw, 64px);
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.cases-cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(239, 195, 52, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.cases-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 740px;
  margin-inline: auto;
}

.cases-cta-badge {
  display: inline-block;
  background: rgba(239, 195, 52, 0.12);
  border: 1px solid rgba(239, 195, 52, 0.28);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.cases-cta-title {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.22;
}

.cases-cta-subtitle {
  margin: 0 auto 32px;
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.68;
  max-width: 620px;
}

.btn-cta-gold {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 16px 0 30px;
  border-radius: 999px;
  background: var(--gold);
  color: #0a0a0a;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 20px rgba(239, 195, 52, 0.4);
}

.btn-cta-gold:hover {
  transform: translateY(-2px);
  background: #f4ca3b;
  box-shadow: 0 10px 28px rgba(239, 195, 52, 0.55);
}

.btn-cta-gold .arrow-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.14);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-cta-gold:hover .arrow-circle {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .featured-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-case-btn, .case-secondary-btn {
    justify-content: center;
  }

  .archive-header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .cases-page-wrap {
    padding-top: calc(88px + 20px);
  }

  .cases-title {
    font-size: clamp(1rem, 4.4vw, 1.45rem);
    letter-spacing: -0.01em;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    padding: 16px;
    border-radius: 22px;
  }

  .featured-media {
    border-radius: 16px;
  }

  .featured-content {
    padding: 4px 0 0;
  }

  .case-body {
    padding: 20px;
  }

  .filter-tabs-wrap {
    gap: 8px;
  }

  .filter-btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.85rem;
  }
}
