/* ==========================================================================
   Case Studies layer — Website 2026 Light Theme
   Listing: hero → filter bar → alternating card grid → pagination.
   Single: hero → info tiles → quote → about → issue/approach/result →
   dark CTA → related stories.
   Inherits design tokens from style.css (:root).
   ========================================================================== */

.text-green {
  color: var(--primary);
}

/* Display typography — the Figma uses Montserrat for case-study headings. */
.cs-hero-title,
.case-card-title,
.cs-single-title,
.cs-section-heading,
.cs-related-title,
.cs-cta-copy h2 {
  font-family: 'Montserrat', var(--font-family-body);
}

/* --------------------------------------------------------------------------
   Listing — page shell
   -------------------------------------------------------------------------- */

.cs-listing {
  background: #f2f3f5;
}

/* --------------------------------------------------------------------------
   Listing — hero
   -------------------------------------------------------------------------- */

.cs-hero {
  background: #f5f6f7 url('../images/case/banner.jpg') center / cover no-repeat;
  /* min-height: 300px; */
  box-shadow: 0px 10px 30px 0px #00000008;
display: flex;
align-items: center;
  @media screen and (max-width: 1024px) {
   padding-top: 20px;
  }

  @media screen and (max-width: 768px) {
    padding-top: 20px;
  }
}

.cs-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  /* padding-top: 56px;
  padding-bottom: 40px; */
}

.cs-hero-copy {
  /* max-width: 640px; */
  padding: 76px 0px 60px;
}

.cs-hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  color: var(--primary-foreground);
  font-weight: 600;
  background: linear-gradient(180deg, #316526 0%, #4FA83D 100%);

}

.cs-hero-title {
  margin: 18px 0 12px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--foreground);
}

.cs-hero-desc {
  color: #5f6368;
  /* max-width: 560px; */
}

.cs-hero-art img {
  width: 260px;
  height: auto;
  object-fit: contain;
  margin-bottom: -10px;
}

/* --------------------------------------------------------------------------
   Listing — filter bar
   -------------------------------------------------------------------------- */

.cs-filter-section {
  margin-top: -45px; /* overlap the hero edge like the Figma card */
  position: relative;
  z-index: 2;
}

.cs-filter-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(28, 28, 28, 0.06);
  padding: 22px 28px;
}

.cs-filter-label {
  font-weight: 700;
  margin-right: 8px;
}

.cs-filter-select {
  position: relative;
  flex: 1 1 200px;
  min-width: 180px;
}

.cs-filter-select select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 10px 32px 10px 2px;
  font: inherit;
  color: var(--foreground);
  cursor: pointer;
}

.cs-filter-select select:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.cs-filter-chevron {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9aa0a6;
  pointer-events: none;
}

.cs-filter-chevron svg {
  width: 100%;
  height: 100%;
}

.cs-filter-clear {
  margin-left: auto;
  font-size: 14px;
  color: #5f6368;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.cs-filter-clear:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Listing — card grid
   -------------------------------------------------------------------------- */

.cs-grid-section {
  padding-top: 36px;
  padding-bottom: 100px;

  @media screen and (max-width: 1366px) {
    padding-bottom: 80px;
  }

  @media screen and (max-width: 1024px) {
    padding-bottom: 60px;
  }

  @media screen and (max-width: 768px) {
    padding-bottom: 50px;
  }
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Grid-only loading state while filters fetch fresh cards (AJAX). */
.cs-grid-section .container.is-filtering {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.case-card {
  position: relative;
  background: var(--card) url('../images/case/gridcard-l.jpg') center / cover no-repeat;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Figma gallery rhythm — rows alternate wide/narrow placement:
   (W,N) (N,W) (W,N) … = repeating 4-card pattern [7,5,5,7]. */
.case-grid > .case-card:nth-child(4n + 1),
.case-grid > .case-card:nth-child(4n) {
  grid-column: span 8;
}

.case-grid > .case-card:nth-child(4n + 2),
.case-grid > .case-card:nth-child(4n + 3) {
  grid-column: span 4;
}

/* Narrow cards are text-only in the Figma — hide their featured image on
   desktop, where the alternating wide/narrow pattern is active. */
@media screen and (min-width: 1023px) {
  .case-grid > .case-card:nth-child(4n + 2) .case-card-art,
  .case-grid > .case-card:nth-child(4n + 3) .case-card-art {
    display: none;
  }
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28, 28, 28, 0.10);
}

.case-card-link {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 32px;
}

.case-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.case-card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.case-card-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
}

.case-card-logo.is-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 700;
}

.case-card-client {
  font-weight: 600;
}

.case-card-title {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 22px;
}

.case-card-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #5f6368;
  font-weight: 500;
}

.case-card-read svg {
  width: 16px;
  height: 16px;
  color: #747887;
  transition: transform 0.2s ease;
}

.case-card:hover .case-card-read {
  color: var(--primary);
}

.case-card:hover .case-card-read svg {
  transform: translateX(4px);
  color: var(--primary);
}

.case-card-art {
  flex: 0 0 42%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-card-art img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: contain;
}

/* Related variant (single page, 3-up) */

.case-card.is-related {
  grid-column: auto;
 background: #FAFAFA;
  border: 1px solid var(--border);
  box-shadow: 0px 10px 30px 0px #00000008;
}

.case-card.is-related .case-card-link {
  padding: 26px;
  flex-direction: column;
}

.case-card.is-related .case-card-title {
  font-size: 20px;
  margin-bottom: 16px;
}
.case-card.is-related .case-card {
  font-size: 20px;
  margin-bottom: 16px;
}
.case-card.is-related .case-card-brand {
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Single — hero
   -------------------------------------------------------------------------- */

.cs-single-hero {
  background: #f5f6f7 url('../images/case/banner.jpg') center / cover no-repeat;
 box-shadow: 0px 10px 30px 0px #00000008;

}

.cs-single-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.cs-single-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.cs-single-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
}

.cs-single-brand span {
  font-weight: 600;
}

.cs-single-title {
  max-width: 620px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 28px;
}

.cs-single-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cs-contact-btn {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-full);
  padding: 33px 32px;
  font-weight: 600;
}

.cs-contact-btn:hover {
  filter: brightness(0.95);
}

.cs-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--foreground);
}

.cs-pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(93.1deg, #316526 0.97%, #4FA83D 98.6%);
  color: var(--primary-foreground);
}

.cs-pdf-icon svg {
  width: 18px;
  height: 18px;
}

.cs-pdf-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.cs-pdf-text strong {
  /* font-size: 15px; */
}

.cs-pdf-text span {
  /* font-size: 12px; */
  color: #5f6368;
}

.cs-single-hero-art img {
  width: 350px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Single — body sections
   -------------------------------------------------------------------------- */

.cs-single-body .section-container {
  padding: 50px 0;
}

.cs-section-heading {
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
}

.cs-section-heading.has-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}

.cs-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--primary);
  flex: 0 0 auto;
}

.cs-story-issue .cs-heading-icon {
  background: #fdeaea;
  color: var(--destructive);
}

.cs-story-approach .cs-heading-icon {
  background: #e8f0fe;
  color: #1a73e8;
}

.cs-heading-icon svg {
  width: 18px;
  height: 18px;
}

.cs-tile-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.cs-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  /* justify-content: center; */
}

.cs-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
 background: linear-gradient(93.1deg, #316526 0.97%, #4FA83D 98.6%);
  color: var(--primary-foreground);
  flex: 0 0 auto;
}

.cs-tile-icon svg {
  width: 24px;
  height: 24px;
}

.cs-tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-tile-label {
  
  color: #5f6368;
}

.cs-tile-value {
  font-weight: 700;
}

.cs-stars {
  letter-spacing: 2px;

}

.cs-star {
  color: #d6d9de;
}

.cs-star.is-filled {
  color: #f5b301;
}

.cs-intro p,
.cs-prose p {
  margin-bottom: 16px;
  color: #3c4043;
  /* line-height: 1.7; */
}

.cs-intro p:last-child,
.cs-prose p:last-child {
  margin-bottom: 0;
}

/* Quote */

.cs-quote {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 50px;
  position: relative;
  margin: 100px 0 0;
  background: #FAFAFA;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0px 10px 30px 0px #00000008;

}

.cs-quote-mark {
  min-width: 100px;
}
.cs-quote-decor{
  diplay:flex;
  flex-direction:column;
}
.cs-quote blockquote {
  margin: 0;
  /* line-height: 1.5; */
  font-weight: 600;
}

.cs-quote figcaption {
  margin-top: 14px;
  color: #5f6368;
}

/* --------------------------------------------------------------------------
   Single — dark CTA banner
   -------------------------------------------------------------------------- */

.cs-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #101312 radial-gradient(120% 200% at 100% 0%, rgba(89, 165, 44, 0.25) 0%, transparent 50%);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  color: #ffffff;
  background: #f5f6f7 url('../images/case/trial-bg.jpg') center / cover no-repeat;
}

.cs-cta-copy h2 {
  
  font-weight: 700;
  margin-bottom: 10px;
  max-width: 480px;
}

.cs-cta-copy p {
 
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
}

.cs-cta-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 61px;
  width: 121px;
  min-width: max-content;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid var(--color-brand, #4fa83d);
  background: linear-gradient(91.37deg, #0d0e10 0.69%, #0d0e10 49.97%, #4fa83d 99.25%);
  color: var(--color-primary, #fdfffd);
  font-weight: 600;
  overflow: hidden;
  /* Spring-like easing approximates framer-motion's spring (slight overshoot). */
  transition: box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Diagonal light streak that sweeps across on hover (GreenBtn shine). */
.cs-cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  z-index: 1;
  width: 7px;
  height: 100%;
  background: #ffffff;
  filter: blur(24px);
  transform: rotate(-157.77deg);
  pointer-events: none;
  transition:
    left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    top 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cs-cta-btn-label {
  position: relative;
  z-index: 2;
}
@media screen and (min-width:1280px) {
  .cs-cta-mascot{
width: auto!important;
}
}
.cs-cta-mascot{
width: 120px;
}
.cs-cta-btn:hover {
  box-shadow: 0 3px 14px -1px #4fa83d;
}

.cs-cta-btn:hover::after {
  top: 29%;
  left: 104%;
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .cs-cta-btn::after {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Single — related stories
   -------------------------------------------------------------------------- */

.cs-related-section {
  background: #FAFAFA;
}

.cs-related-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.cs-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Archive header
   -------------------------------------------------------------------------- */

.cs-archive-header {
  background: #f5f6f7 url('../images/case/banner.jpg') center / cover no-repeat;
  border-bottom: 1px solid var(--border);
  padding: 48px 0 32px;
}

.cs-archive-header h1 {
  font-size: 36px;
  font-weight: 700;
}

.cs-archive-header p {
  margin-top: 8px;
  color: #5f6368;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1023px) {
  .cs-hero-title {

  }

  .cs-single-title {
    font-size: 32px;
  }

  .case-grid > .case-card,
  .case-grid > .case-card:nth-child(4n + 1),
  .case-grid > .case-card:nth-child(4n + 2),
  .case-grid > .case-card:nth-child(4n + 3),
  .case-grid > .case-card:nth-child(4n) {
    grid-column: span 6;
  }

  .case-card-title {
    font-size: 22px;
  }

  /* Keep the three filters on one row at tablet/768 (narrower basis). */
  .cs-filter-select {
    flex: 1 1 145px;
    min-width: 145px;
  }

  .cs-tile-row {
    gap: 16px;
  }

  .cs-tile {
    justify-content: flex-start;
  }

  .cs-tile-icon {
    width: 64px;
    height: 64px;
  }

  .cs-tile-icon svg {
    width: 22px;
    height: 22px;
  }

  /* Single — related stories drop to two-up on tablet (Figma 768 frame). */
  .cs-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Keep the hero mascots from crowding the title on tablet portrait. */
  .cs-single-hero-art img {
    width: 300px;
  }

  .cs-hero-art img {
    width: 240px;
  }

  /* Hide the CTA mascot on tablet and mobile. */
  .cs-cta-mascot {
    display: none;
  }


}

@media screen and (max-width: 1025px) {
  /* Section spacing ladder — 80px gap at tablet (40px top/bottom each).
     CTA + related render outside .cs-single-body, so target them explicitly. */
  .cs-single-body .section-container,
  .section-container.cs-cta-section,
  .section-container.cs-related-section {
    padding: 40px 0;
  }

  .cs-pdf-icon {
    width: 60px;
    height: 60px;
  }

  .cs-intro-decor {
    width: 80px;
    height: 80px;
  }

  .cs-quote-mark {
    min-width: 80px;
    width: 80px;
    height: 80px;
  }

  .cs-section-heading {
    margin-bottom: 40px;
  }

  .cs-quote {
    margin-top: 80px;
    padding: 30px;
  }
  .case-card-link{
    padding: 20px;
  }
}
@media screen and ((min-width: 600px) and (max-width: 800px )) {
  .cs-hero-copy{
    padding: 26px 0;
  }
  .cs-filter-section{
    margin-top: -16px;
  }
}
@media screen and ((min-width: 780px) and (max-width: 1080px )) {
.cs-single-hero{
  padding: 20px 0;
}
}
@media screen and (max-width: 576px) {
.cs-hero-copy{
  padding: 20px 0;
}

  .cs-single-hero-inner {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .cs-single-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  /* Full-width primary action on phones. */
  .cs-single-actions {
    gap: 16px;
  }

  .cs-contact-btn {
    padding: 26px 28px;
  }

  /* Listing hero stacks and drops the mascot on phones (Figma mobile). */
  .cs-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cs-hero-art {
    display: none;
  }

  /* Filter bar: drop the hero overlap and stack each dropdown full-width. */
  .cs-filter-section {
    margin-top: 0;
    padding-top: 20px;
  }

  .cs-filter-bar {
    padding: 18px 20px;
    gap: 14px;
  }

  .cs-filter-label {
    width: 100%;
  }

  .cs-filter-clear {
    margin-left: 0;
  }

  .cs-filter-select {
    flex: 1 1 100%;
  }

  .cs-grid-section {
    padding-top: 20px;
  }

  /* Cards stack into one text-only column. */
  .case-grid > .case-card,
  .case-grid > .case-card:nth-child(4n + 1),
  .case-grid > .case-card:nth-child(4n + 2),
  .case-grid > .case-card:nth-child(4n + 3),
  .case-grid > .case-card:nth-child(4n) {
    grid-column: 1 / -1;
  }

  .case-card-link {
    flex-direction: column;
    padding: 20px;
  }

  .case-card-art {
    display: none;
  }
}

@media screen and (max-width: 768px) {
   .cs-single-hero-copy {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  /* Single-page hero stacks and drops its mascot at 768.
     The listing keeps its row layout until 576 (see the mobile block). */
  .cs-single-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cs-single-hero-art {
    display: none;
  }

  /* Listing: equal two-up, text-only cards at 768 (half-and-half).
     The grid is already 2 columns from the <=1023 rule; hiding the art
     makes both columns uniform. Tablet (769-1024) keeps the artwork. */
  .case-card-art {
    display: none;
  }

  /* Related stories: two cards in a row at 768. */
  .cs-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Show only the first two cards at 768 and below. */
  .cs-related-grid > :nth-child(n + 3) {
    display: none;
  }

  .cs-tile {
    gap: 12px;
  }

  .cs-tile-icon {
    width: 56px;
    height: 56px;
  }

  .cs-tile-icon svg {
    width: 20px;
    height: 20px;
  }

  /* Section spacing ladder — 60px gap at 768 (30px top/bottom each). */
  .cs-single-body .section-container,
  .section-container.cs-cta-section,
  .section-container.cs-related-section {
    padding: 30px 0;
  }

  .cs-pdf-icon {
    width: 50px;
    height: 50px;
  }

  /* Quote-mark image — 50px at 768 and below. */
  .cs-intro-decor {
    width: 50px;
    height: 50px;
  }

  .cs-section-heading {
    margin-bottom: 30px;
  }

  .cs-quote {
    flex-direction: row;
    align-items: start;
    margin-top: 60px;
    gap: 24px;
    padding: 20px;
  }

  .cs-quote-mark {
    left: 24px;
    min-width: 50px;
    width: 50px;
    height: 50px;
  }

  .cs-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
  }
}

/* Section spacing ladder — 40px gap on phones (20px top/bottom each).
   Placed after the 768px block so it wins the max-width cascade. */
@media screen and (max-width: 576px) {
  .cs-single-body .section-container,
  .section-container.cs-cta-section,
  .section-container.cs-related-section {
    padding: 20px 0;
  }

  .cs-single-hero-copy {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .cs-quote {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px;
    padding: 20px;
  }

  .cs-pdf-icon {
    width: 45px;
    height: 45px;
  }

  /* Info tiles stack into a single column on phones; row on tablet. */
  .cs-tile-row {
    grid-template-columns: 1fr;
  }

  /* Related stories stack into one column on phones. */
  .cs-related-grid {
    grid-template-columns: 1fr;
  }

  .cs-section-heading {
    margin-bottom: 20px;
  }

  /* Full-width CTA button on phones. */
  .cs-cta-btn {
    width: 100%;
  }
}

.text-subtle{
  color:#747887
}