/* ═══════════════════════════════════════════════════════════════
   PIXEL ADDIS — Projects Page
   Clean, Corporate, Professional Style
   ═══════════════════════════════════════════════════════════════ */

/* ═══ PAGE ═══ */
.pl-page {
  background: #ffffff;
  min-height: 100vh;
}

/* ═══ HERO — Light with Topographic Contour Pattern ═══ */
.pl-hero {
  background: #f4f6fa;
  color: var(--gray-900);
  padding: 140px 0 64px;
  position: relative;
  overflow: hidden;
  text-align: left;
  border-bottom: 1px solid #e0e4ed;
}

/* Topographic contour line pattern — real image */
.pl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/topo-pattern.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

/* Soft fade at edges */
.pl-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f4f6fa 0%, transparent 18%, transparent 82%, #f4f6fa 100%);
  pointer-events: none;
}

.pl-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.pl-hero-text-col {
  max-width: 540px;
}

.pl-hero-image-col {
  display: flex;
  justify-content: flex-end;
}

.pl-hero-image-col img {
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Accent bar — like Oracle's red line */
.pl-hero-accent {
  width: 40px;
  height: 4px;
  background: var(--blue-600);
  margin-bottom: 24px;
  border-radius: 0;
}

.pl-hero-eyebrow {
  display: none;
}

.pl-hero-title {
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: none;
  -webkit-text-fill-color: unset;
}

.pl-hero-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 460px;
}

/* ═══ FILTER TABS — Clean Underline Style ═══ */
.pl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-start;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  max-width: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #e5e5e5;
}

.pl-filter-btn {
  background: transparent;
  color: var(--gray-500);
  border: none;
  border-radius: 0;
  padding: 14px 20px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  margin-bottom: -2px;
}

.pl-filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue-600);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  display: block;
}

.pl-filter-btn:hover {
  color: var(--gray-900);
  background: transparent;
}

.pl-filter-btn.active {
  color: var(--gray-900);
  font-weight: 600;
  background: transparent;
  box-shadow: none;
  border: none;
}

.pl-filter-btn.active::after {
  transform: scaleX(1);
  width: auto;
}

/* ═══ STATS STRIP ═══ */
.pl-stats-strip {
  display: none;
}

/* ═══ CATALOG SECTION ═══ */
.pl-catalog-section {
  padding: 56px 0 80px;
  background: #fff;
}

.pl-catalog-section::before {
  display: none;
}

/* Section header */
.pl-section-header {
  display: none;
}

/* ═══ PROJECT GRID — Clean Cards ═══ */
.pl-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ═══ PROJECT CARD — Horizontal Layout ═══ */
.pl-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  overflow: hidden;
  min-height: auto;
  padding: 0;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  opacity: 1;
  transform: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  direction: ltr !important;
}

.pl-card > * {
  direction: ltr !important;
}

.pl-card:nth-child(even) {
  direction: ltr;
}

.pl-card:nth-child(even) > * {
  direction: ltr;
}

.pl-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: none;
}

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

.pl-card--animate {
  animation: plCardIn 0.4s ease forwards;
}

@keyframes plCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Featured card — same horizontal layout */
.pl-card--featured {
  grid-column: 1 / -1;
}

.pl-card .pl-card-img-wrap {
  aspect-ratio: auto;
  min-height: 340px;
}

/* ── Card Image ── */
.pl-card-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f0f2f5;
  min-height: 300px;
  border-radius: 0;
  line-height: 0;
  display: block;
}

.pl-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
  filter: none;
}

.pl-card-img-wrap::after {
  display: none;
}

.pl-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.03) 100%);
  pointer-events: none;
}

.pl-card:hover .pl-card-img-wrap img {
  transform: scale(1.03);
  filter: none;
}

/* ── Card Body ── */
.pl-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
}

/* Category badge */
.pl-card-category-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
  padding: 0;
  padding-left: 14px;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
}

.pl-card-category-badge::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  display: block;
}

/* Title */
.pl-card-title {
  font-family: var(--heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: 0;
}

.pl-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  background: none;
  -webkit-text-fill-color: unset;
}

.pl-card-title a:hover {
  color: var(--blue-600);
  background: none;
  -webkit-text-fill-color: unset;
}

/* Subtitle */
.pl-card-subtitle {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--gray-400);
  margin-bottom: 14px;
}

/* Description */
.pl-card-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 18px;
  flex: 1;
  max-width: none;
}

/* Meta */
.pl-card-meta {
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  margin-bottom: 16px;
}

.pl-card-clients {
  font-size: 0.76rem;
  color: var(--gray-400);
  font-weight: 400;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pl-card-clients svg {
  color: var(--gray-300);
  flex-shrink: 0;
}

.pl-card-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pl-card-stat {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.pl-card-stat strong {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.88rem;
  font-family: var(--heading);
}

/* CTA Button — Simple text link with arrow */
.pl-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: gap 0.25s ease, color 0.2s ease;
  width: auto;
  overflow: visible;
}

.pl-card-btn::before {
  display: none;
}

.pl-card-btn span,
.pl-card-btn svg {
  position: static;
  z-index: auto;
}

.pl-card-btn:hover {
  color: var(--blue-800);
  gap: 12px;
  box-shadow: none;
  transform: none;
  border-color: transparent;
}

.pl-card-btn svg {
  transition: transform 0.25s ease;
}

.pl-card:hover .pl-card-btn svg {
  transform: translateX(4px);
}

/* ═══ CTA SECTION — Dark with Pattern & Diagonal Accents ═══ */
.pd-cta-section {
  padding: 64px 0;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}

.pd-cta-card {
  text-align: center;
  background: #0c1529;
  border: none;
  border-radius: 12px;
  padding: 72px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Topographic contour pattern — dark version */
.pd-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/topo-pattern-dark.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  border-radius: 12px;
  pointer-events: none;
}

/* Diagonal accent lines */
.pd-cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      -25deg,
      transparent 0%, transparent 3.5%,
      rgba(25, 73, 179, 0.25) 3.5%, rgba(25, 73, 179, 0.25) 4.2%,
      transparent 4.2%, transparent 100%
    ),
    linear-gradient(
      25deg,
      transparent 0%, transparent 95.5%,
      rgba(25, 73, 179, 0.25) 95.5%, rgba(25, 73, 179, 0.25) 96.2%,
      transparent 96.2%, transparent 100%
    );
  pointer-events: none;
}

.pd-cta-card h2 {
  font-family: var(--heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  background: none;
  -webkit-text-fill-color: unset;
  color: #fff;
  position: relative;
  z-index: 1;
}

.pd-cta-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.pd-cta-card .pd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-900);
  background: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.pd-cta-card .pd-btn-primary:hover {
  background: #eef2ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ═══ FOOTER — Standard ═══ */
.pl-page #footer {
  background: var(--gray-900);
  border-top: none;
}

.pl-page .footer-card {
  background: transparent;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .pl-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pl-hero-image-col {
    justify-content: center;
  }

  .pl-hero-image-col img {
    max-width: 100%;
  }

  .pl-card--featured,
  .pl-card {
    grid-template-columns: 1fr;
  }

  .pl-card .pl-card-img-wrap {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .pl-hero {
    padding: 120px 0 48px;
    text-align: left;
  }

  .pl-hero-title {
    font-size: 1.8rem;
  }

  .pl-grid {
    gap: 20px;
  }

  .pl-card-title {
    font-size: 1.2rem;
  }

  .pl-card-body {
    padding: 20px 22px 24px;
  }

  .pl-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .pl-filter-btn {
    white-space: nowrap;
    padding: 12px 16px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .pl-hero {
    padding: 100px 0 36px;
  }

  .pl-hero-title {
    font-size: 1.5rem;
  }

  .pl-hero-desc {
    font-size: 0.88rem;
  }

  .pl-filter-btn {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .pl-card .pl-card-img-wrap {
    min-height: 200px;
  }

  .pl-card-body {
    padding: 18px 16px 22px;
  }

  .pl-card-title {
    font-size: 1.05rem;
  }

  .pl-card-subtitle {
    font-size: 0.78rem;
  }

  .pl-card-desc {
    font-size: 0.82rem;
  }

  .pl-card-clients span {
    font-size: 0.75rem;
  }

  .pl-card-stats-row {
    gap: 12px;
  }

  .pl-card-stat {
    font-size: 0.78rem;
  }

  .pl-card-btn {
    font-size: 0.8rem;
    padding: 10px 18px;
  }
}
