/* ===== Customer Cases / Project References ===== */

/* Hero */
.prj-hero {
  position: relative;
  height: min(618px, calc(100vh - 80px));
  margin-top: 80px;
  overflow: hidden;
  color: #fff;
}

.prj-hero__bg {
  position: absolute;
  inset: 0;
}

.prj-hero__bg img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  max-width: none;
  object-fit: cover;
  animation: heroZoom 14s ease-out forwards;
}

.prj-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
}

.prj-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1300px;
  padding-top: 20px;
  padding-bottom: 40px;
}

.prj-hero__content .p-breadcrumb {
  position: absolute;
  top: 11px;
  left: 20px;
  right: 20px;
  margin-bottom: 0;
}

.prj-hero__content .p-breadcrumb span {
  color: rgba(255, 255, 255, 0.7);
}

.prj-hero__eyebrow {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  line-height: 16px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.prj-hero__title {
  font-family: var(--font-noto);
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: -0.96px;
  max-width: 672px;
  margin-bottom: 24px;
}

.prj-hero__desc {
  font-family: var(--font-inter);
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 576px;
  margin-bottom: 40px;
}

.prj-hero__cta {
  align-self: flex-start;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 16px;
  border-radius: 2px;
}

/* Filter Bar */
.prj-filter {
  border-bottom: 1px solid #c1c7d0;
}

.prj-filter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1300px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.prj-filter__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prj-filter__tab {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 2px;
  background: #f2f4f2;
  color: #41474f;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.prj-filter__tab:hover {
  color: var(--green);
}

.prj-filter__tab.is-active {
  background: var(--green);
  color: #fff;
}

.prj-filter__product {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.prj-filter__label {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #41474f;
  white-space: nowrap;
}

/* Product Dropdown */
.prj-dropdown {
  position: relative;
}

.prj-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #333;
  background: #fff;
  border: 1px solid #c1c7d0;
  border-radius: 2px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  white-space: nowrap;
}

.prj-dropdown__toggle:hover {
  border-color: var(--green);
}

.prj-dropdown__toggle img {
  transition: transform 0.2s ease;
}

.prj-dropdown.is-open .prj-dropdown__toggle img {
  transform: rotate(180deg);
}

.prj-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid #c1c7d0;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 10;
}

.prj-dropdown__menu li {
  font-family: var(--font-inter);
  font-size: 14px;
  line-height: 20px;
  color: #41474f;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.prj-dropdown__menu li:hover {
  background: #f2f4f2;
  color: var(--green);
}

.prj-dropdown__menu li.is-selected {
  color: var(--green);
  font-weight: 600;
}

/* Case Grid */
.prj-cases {
  padding: 48px 0 80px;
}

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

.prj-card {
  position: relative;
  border: 1px solid #c1c7d0;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.prj-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 96px;
  height: 6px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.prj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
  border-color: rgba(17, 168, 78, 0.35);
}

.prj-card:hover::before {
  transform: scaleX(1);
}

.prj-card__media {
  position: relative;
  height: 256px;
  overflow: hidden;
}

.prj-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.prj-card:hover .prj-card__media img {
  transform: scale(1.03);
}

.prj-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  background: var(--green);
  color: #fff;
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  line-height: 16px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
}

.prj-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prj-card__date {
  font-family: var(--font-inter);
  font-size: 12px;
  line-height: 16px;
  color: #41474f;
  margin-bottom: 12px;
}

.prj-card__title {
  font-family: var(--font-inter);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #333;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.prj-card:hover .prj-card__title {
  color: var(--green);
}

.prj-card__excerpt {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 24px;
  color: #41474f;
  margin-bottom: 20px;
  flex: 1;
}

.prj-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--green);
  transition: gap 0.25s ease;
  margin-top: auto;
}

.prj-card:hover .prj-card__link,
.prj-card__link:hover {
  gap: 12px;
}

/* Pagination */
.prj-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.prj-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #c1c7d0;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.prj-pagination__arrow:hover {
  border-color: var(--green);
  background: #f2f4f2;
}

a.prj-pagination__arrow,
a.prj-pagination__num {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.prj-pagination__arrow.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.prj-pagination__arrow img {
  display: block;
  width: 8px;
  height: 12px;
  flex-shrink: 0;
}

.prj-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #41474f;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.prj-pagination__num:hover {
  color: var(--green);
}

.prj-pagination__num.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.prj-pagination__ellipsis {
  font-family: var(--font-inter);
  font-size: 14px;
  color: #41474f;
  padding: 0 4px;
}

/* Responsive */
@media (max-width: 1100px) {
  .prj-cases__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 768px) {
  .prj-hero {
    height: auto;
    min-height: 480px;
  }

  .prj-hero__title {
    font-size: 36px;
    line-height: 44px;
  }

  .prj-hero__desc {
    font-size: 16px;
    line-height: 26px;
  }

  .prj-filter__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .prj-filter__product {
    justify-content: space-between;
  }

  .prj-dropdown__menu {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .prj-cases__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .prj-card__title {
    font-size: 20px;
    line-height: 28px;
  }
}
